Fix bug878971 - Added console.error to check error

https://bugzilla.mozilla.org/show_bug.cgi?id=878971