diff --git a/src/index.js b/src/index.js index 8ddb912..35923a7 100644 --- a/src/index.js +++ b/src/index.js @@ -74,14 +74,14 @@ class MCF_Number extends MCF_Type{ case 'max': this.validations.max = function(value, definition){ if (value > definition.max){ - throw new Error(`MCF_Number creation: the value ${value} is higher than the maximum defined: ${definition.maxLength}`); + throw new Error(`MCF_Number creation: the value ${value} is higher than the maximum defined: ${definition.max}`); } }; break; case 'min': this.validations.min = function(value, definition){ if (value < definition.min){ - throw new Error(`MCF_Number creation: the value ${value} is lower than the minimum defined: ${definition.minLength}`); + throw new Error(`MCF_Number creation: the value ${value} is lower than the minimum defined: ${definition.min}`); } }; break;