I am using a library and in some cases it returns "400 http bad request",and the browser console print it. How can I handle the client errors and prevent them from showing in browser console for a specific library?
Asked
Active
Viewed 486 times
0
-
https://stackoverflow.com/questions/7120290/how-to-suppress-all-javascript-runtime-errors – Adelin Jul 12 '18 at 06:56
-
you can't - because it's a network request that "fails", and there's no way you can prevent me from seeing that – Jaromanda X Jul 12 '18 at 06:56
-
but can i catch the error with javascript somehow? – mahboub_mo Jul 12 '18 at 06:57
-
did you click on my link? :) It's the same principle. – Adelin Jul 12 '18 at 06:57
-
no, because it's a network error that will always be reported in the network console – Jaromanda X Jul 12 '18 at 06:58