Skip to content
Permalink
Browse files

Fix: Better error reporting when an exception happens

Output capture exception to the user in case there has been an error to
avoid printing just an "X".
  • Loading branch information
molant committed Nov 21, 2019
1 parent 15bda95 commit 42b40b58faf52d794d6cadd4e40de8fbfe8b93fd
Showing with 2 additions and 1 deletion.
  1. +2 −1 packages/hint/src/lib/cli/analyze.ts
@@ -478,8 +478,9 @@ export default async (actions: CLIOptions): Promise<boolean> => {
} catch (e) {
exitCode = 1;
endSpinner('fail');
debug(`Failed to analyze: ${e.url}`);
debug(`Failed to analyze: ${targets}`);
debug(e);
logger.error(e);
}

debug(`Total runtime: ${Date.now() - start}ms`);

0 comments on commit 42b40b5

Please sign in to comment.
You can’t perform that action at this time.