mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
(mvc) remove incomplete error handling, was superseded 22701ee038 (diff-755c67cb284868a802a88a873c75038c) closes https://github.com/opnsense/core/issues/1234
This commit is contained in:
parent
5a6f5b6422
commit
e434df240c
@ -81,18 +81,7 @@ function saveFormToEndpoint(url,formid,callback_ok, disable_dialog) {
|
||||
// execute callback function
|
||||
callback_ok();
|
||||
}
|
||||
|
||||
} else {
|
||||
// error handling, show internal errors
|
||||
// Normally the form should only return validation issues, if other things go wrong throw an error.
|
||||
BootstrapDialog.show({
|
||||
type: BootstrapDialog.TYPE_ERROR,
|
||||
title: 'save',
|
||||
message: 'Unable to save data, an internal error occurred.<br> ' +
|
||||
'Response from server was: <br> <small>'+JSON.stringify(data)+'</small>'
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user