Browse Source

Handling 400 error with invalid/empty query

Closes #700
master
Igor Zhukov 10 years ago
parent
commit
135bbaf644
  1. 5
      app/js/services.js

5
app/js/services.js

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

Loading…
Cancel
Save