I think you can revert this change and simplify this by changing detailedError=>message in https://github.com/mozilla/browserid/pull/3081/files#L1R540