Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 16, 2016
1 parent e9602c2 commit 1182cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ function throwTypeError (name, type, required) {
throw new TypeError(msg)
}

function throwValidationError (name, value, desription) {
function throwValidationError (name, value, description) {
var msg
if (desription) msg = desription.replace('{VALUE}', value)
if (description) msg = description.replace('{VALUE}', value)
else msg = "Fail '" + value + "' validation for '" + name + "'."
throw new TypeError(msg)
}
Expand Down

0 comments on commit 1182cf7

Please sign in to comment.