mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 09:56:22 +00:00
Remove stack trace for ENOENT.
This commit is contained in:
parent
43873efcab
commit
37a7c318d5
@ -84,6 +84,7 @@
|
|||||||
var trimmed = idx === -1 ? msg : msg.substring( idx + 7 );
|
var trimmed = idx === -1 ? msg : msg.substring( idx + 7 );
|
||||||
if( !ex.fluenterror || ex.fluenterror < 3 ) { // TODO: magic #s
|
if( !ex.fluenterror || ex.fluenterror < 3 ) { // TODO: magic #s
|
||||||
console.log( chalk.red.bold('ERROR: ' + trimmed.toString()) );
|
console.log( chalk.red.bold('ERROR: ' + trimmed.toString()) );
|
||||||
|
if( ex.code !== 'ENOENT' ) // Don't emit stack for common stuff
|
||||||
console.log( chalk.gray(ex.stack) );
|
console.log( chalk.gray(ex.stack) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user