javascript - How to hide error message in angularjs http request? -


I have received a request from API, in some time I will get EXIF ​​information, but sometimes I get an error Message will be found {"error": "no exif data"} How can I hide this error message in Chrome, error 400 is (bad request)

  $ Http.get (res.getQNUrl (domain, key, "exif"). Feature (function (data) {$ scope error (function (data, position, header, config) {})    

The error message you specified is browser-specific. This is a browser logging functionality.

Well, a workaround for this (there is no problem because it does not resolve I do not recommend it because it has the functionality of a built-in browser that you are trying to suppress by working to do this, but if you want it to be the same, Here are some ways to make a conclusion.

  • Using a regular expression filter like

    ^ (?! * 404 \ (not found \)) (?!. * [File name]) <

  • I have not understood this much because already there is a question that tells it in detail.

    Detailed explanation about the above mentioned action See.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -