Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #132 from macsj200/patch-1
Browse files Browse the repository at this point in the history
Fix typo in Error handling controller code
  • Loading branch information
amoshaviv committed Oct 7, 2014
2 parents 2c319c5 + 867cf5e commit 8519f6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/errors.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ var getUniqueErrorMessage = function(err) {

try {
var fieldName = err.err.substring(err.err.lastIndexOf('.$') + 2, err.err.lastIndexOf('_1'));
output = fieldName.charAt(0).toUpperCase() + fieldName.slice(1) + ' already exist';
output = fieldName.charAt(0).toUpperCase() + fieldName.slice(1) + ' already exists';

} catch(ex) {
output = 'Unique field already exist';
output = 'Unique field already exists';
}

return output;
Expand Down Expand Up @@ -39,4 +39,4 @@ exports.getErrorMessage = function(err) {
}

return message;
};
};

0 comments on commit 8519f6b

Please sign in to comment.