This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var errorTypes = new Hasshu({ | |
'internal_error': 'An internal error occured', | |
'some_validation_error': 'Something didn\'t validate' | |
}); | |
errorTypes.forEach(function(code, message) { | |
var errorType = // use mapper on key |