Print an unhandled exception as a single error, not multiple errors (#2595)

This commit is contained in:
CyrusNajmabadi 2019-03-27 12:17:38 -07:00 committed by GitHub
parent b1c9386926
commit ec05610f2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,8 +186,9 @@ export function run(argv: minimist.ParsedArgs, programStarted: () => void) {
log.error(message, err.resource);
}
else {
log.error(`Running program '${program}' failed with an unhandled exception:`);
log.error(defaultMessage);
log.error(
`Running program '${program}' failed with an unhandled exception:
${defaultMessage}`);
}
};