Skip to content

Commit 45a3d33

Browse files
committed
fix
1 parent d90a60d commit 45a3d33

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/react-doctor/src/scan.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,14 @@ export const scan = async (directory: string, inputOptions: ScanOptions = {}): P
417417
return lintDiagnostics;
418418
} catch (error) {
419419
lintSpinner?.fail("Lint checks failed (non-fatal, skipping).");
420-
logger.error(String(error));
420+
if (error instanceof Error) {
421+
logger.error(error.message);
422+
if (error.stack) {
423+
logger.dim(error.stack);
424+
}
425+
} else {
426+
logger.error(String(error));
427+
}
421428
return [];
422429
}
423430
})()

0 commit comments

Comments
 (0)