From b644530fa914ec1b24e0f2db161526135543d969 Mon Sep 17 00:00:00 2001 From: dgarcia Date: Tue, 19 May 2020 15:54:53 +0200 Subject: [PATCH] Fix minor text issue on number class validations --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;