Commit e434df24 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) remove incomplete error handling, was superseded...

(mvc) remove incomplete error handling, was superseded https://github.com/opnsense/core/commit/22701ee038722408a8d21916dbb6ee13023a39dd#diff-755c67cb284868a802a88a873c75038c closes https://github.com/opnsense/core/issues/1234
parent 5a6f5b64
......@@ -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>'
});
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment