mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Improve modal error message
This commit is contained in:
		| @@ -844,8 +844,13 @@ function launchModalForm(url, options = {}) { | ||||
|  | ||||
|             $(modal).modal('hide'); | ||||
|  | ||||
|             // Permission denied! | ||||
|             if (xhr.status == 400) { | ||||
|             if (xhr.status == 0) { | ||||
|                 // No response from the server | ||||
|                 showAlertDialog( | ||||
|                     "No Response", | ||||
|                     "No response from the InvenTree server", | ||||
|                 ); | ||||
|             } else if (xhr.status == 400) { | ||||
|                 showAlertDialog( | ||||
|                     "Error 400: Bad Request", | ||||
|                     "Server returned error code 400" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user