mirror of https://github.com/MISP/MISP
fix: [UI] Correct message for fail callback
parent
407291f0e7
commit
390010bf5b
|
@ -58,7 +58,7 @@ function rgb2hex(rgb) {
|
|||
function xhrFailCallback(xhr) {
|
||||
if (xhr.status === 0) {
|
||||
showMessage('fail', 'Something went wrong – server is not responding.');
|
||||
} if (xhr.status === 401) {
|
||||
} else if (xhr.status === 401) {
|
||||
showMessage('fail', 'Unauthorized. Please reload page to log again.');
|
||||
} else if (xhr.status === 403 || xhr.status === 405) {
|
||||
showMessage('fail', 'Not allowed.');
|
||||
|
|
Loading…
Reference in New Issue