fix: don't do anything on unknown errors
This commit is contained in:
parent
9cee5b7c73
commit
9a2a202586
1 changed files with 2 additions and 2 deletions
|
@ -851,9 +851,9 @@ async function updateTSConfig(
|
||||||
let inputConfig = await loadTSConfig(cwd);
|
let inputConfig = await loadTSConfig(cwd);
|
||||||
let inputConfigText = '';
|
let inputConfigText = '';
|
||||||
|
|
||||||
if (inputConfig === 'invalid-config') {
|
if (inputConfig === 'invalid-config' || inputConfig === 'unknown-error') {
|
||||||
return UpdateResult.failure;
|
return UpdateResult.failure;
|
||||||
} else if (inputConfig === 'missing-config' || inputConfig === 'unknown-error') {
|
} else if (inputConfig === 'missing-config') {
|
||||||
logger.debug('add', "Couldn't find tsconfig.json or jsconfig.json, generating one");
|
logger.debug('add', "Couldn't find tsconfig.json or jsconfig.json, generating one");
|
||||||
inputConfig = {
|
inputConfig = {
|
||||||
tsconfig: defaultTSConfig,
|
tsconfig: defaultTSConfig,
|
||||||
|
|
Loading…
Reference in a new issue