Closed vemv closed 7 years ago
Nope, ask the library to stop outputting non-errors to console.error or check if the library has a production mode that doesn't output non-errors to console.error
Alright, mind to clarify why is this not possible? Phantomjs thing or poltergeist implementation detail?
Poltergeist relies on the PhantomJS onError callback which is called when console.error is called - The name console.error
is pretty self explanatory, not sure why "some" libraries choose to use it for warnings.
Thanks so much for the explanation!
Hi!
Let's say a JS library outside of my control likes to
console.error
on warnings. They don't break my app in any way.In that case, the
js_errors: true
option would cause my build to fail. So I have to set it tofalse
, which is quite undesirable.Is there a way to observe only actual errors, disregarding
console.error
output?Cheers - Victor