Bug 1064845 — Use constants.

https://bugzilla.mozilla.org/show_bug.cgi?id=1064845
For error messages I prefer not use a constant.