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