[Fix Bug 895459] Making error messages better.

See [Bug 895459](https://bugzilla.mozilla.org/show_bug.cgi?id=895459) for reference.