add specific message for failure to convert to JSON
This commit is contained in:
		
							parent
							
								
									a377d28da8
								
							
						
					
					
						commit
						eedd53aba4
					
				
					 1 changed files with 11 additions and 11 deletions
				
			
		|  | @ -42,7 +42,7 @@ export default class net { | ||||||
| 						if (STRICT) { | 						if (STRICT) { | ||||||
| 							// Should not allow the data to be returned since it's not correct.
 | 							// Should not allow the data to be returned since it's not correct.
 | ||||||
| 							DATA = null; | 							DATA = null; | ||||||
| 							throw new TypeError(texts.localized(`error_msg_notJSON`, false)); | 							throw err; | ||||||
| 						} else { | 						} else { | ||||||
| 							logging.warn(texts.localized(`error_msg_notJSON`, false)); | 							logging.warn(texts.localized(`error_msg_notJSON`, false)); | ||||||
| 						} | 						} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue