concatenate non-parseable response body to e.stack
This commit is contained in:
		
							parent
							
								
									764096a0b2
								
							
						
					
					
						commit
						526e19b23e
					
				| @ -30,6 +30,8 @@ module.exports.create = function (deps) { | ||||
|         try { | ||||
|           data = JSON.parse(data); | ||||
|         } catch(e) { | ||||
|           err.raw = data; | ||||
|           err.stack += '\n' + data; | ||||
|           cb(e); | ||||
|           return; | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user