Skip to content
Snippets Groups Projects
Commit b585e022 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

validation problem shouldn't be reported as an error

parent 377c5a6e
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!589Feature error reporting
......@@ -402,7 +402,7 @@ GuiConnector.prototype.alert = function (error, redirectIfSecurityError) {
* @returns {Object}
*/
GuiConnector.prototype.getErrorMessageForError = function (error) {
var expectedError = typeof error === 'string' || error instanceof SecurityError;
var expectedError = typeof error === 'string' || error instanceof SecurityError || error instanceof ValidationError;
var errorData = {
showReport: !expectedError,
message: typeof error === 'string' ? error : error.message,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment