Handling 400 error with invalid/empty query

Closes #700
This commit is contained in:
Igor Zhukov 2015-02-16 13:45:17 +03:00
parent 75c44ac92b
commit 135bbaf644

View File

@ -1166,6 +1166,11 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
count: foundCount,
history: foundMsgs
};
}, function (error) {
if (error.code == 400) {
error.handled = true;
}
return $q.reject(error);
});
}