Skip to content

Commit

Permalink
fix: better error message for non existing custom tsconfig #134
Browse files Browse the repository at this point in the history
  • Loading branch information
pvasek committed Nov 19, 2018
1 parent 85e9d34 commit cb254ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export function withCustomConfig(
);

if (error !== undefined) {
throw error;
const errorText = `Cannot load custom tsconfig.json from provided path: ${tsconfigPath}, with error code: ${error.code}, message: ${error.messageText}`;
throw new Error(errorText);
}

const { options, errors } = ts.parseJsonConfigFileContent(
Expand Down

0 comments on commit cb254ae

Please sign in to comment.