Show file path and position when babel transformation failed
Summary: Currently when babel transformation is failed, only stack is shown. It's better to log the whole error object because it also contains path and line number of the code failing to transpile. Reviewed By: passy Differential Revision: D27034942 fbshipit-source-id: 76e03871c924489e2698a26622e6bc6fdd305560
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b3274a8450
commit
4997cb9847
@@ -54,7 +54,7 @@ const hardcodedPlugins = new Set<string>([
|
||||
]);
|
||||
|
||||
export function die(err: Error) {
|
||||
console.error(err.stack);
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user