style(error): log stack if available
This commit is contained in:
		
							parent
							
								
									49de103753
								
							
						
					
					
						commit
						615d796f24
					
				| @ -7,7 +7,7 @@ module.exports = { | ||||
|   standard: efh(function (err) { | ||||
|     console.log('Something went wrong:') | ||||
|     if (typeof err === 'string') return console.log(err) | ||||
|     if (err instanceof Error) return console.log(err.message) | ||||
|     if (err instanceof Error) return console.log(err.message, err.stack) | ||||
|     if (err.message) return console.log(err.message) | ||||
|     console.log(err) | ||||
|   }) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user