From 6da06e5d8cbefc0444a3acc1df9697218e60785f Mon Sep 17 00:00:00 2001
From: Delaigue Olivier <olivier.delaigue@irstea.priv>
Date: Tue, 19 Nov 2019 11:11:44 +0100
Subject: [PATCH] v1.3.2.57 CLEAN: improve Error message in CreateInputsCrit #3

---
 DESCRIPTION          | 2 +-
 NEWS.md              | 2 +-
 R/CreateInputsCrit.R | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index 72c6fdb4..783aa355 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
 Package: airGR
 Type: Package
 Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
-Version: 1.3.2.56
+Version: 1.3.2.57
 Date: 2019-11-19
 Authors@R: c(
   person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
diff --git a/NEWS.md b/NEWS.md
index d10569c2..640cfb3b 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,7 +2,7 @@
 
 
 
-### 1.3.2.56 Release Notes (2019-11-19)
+### 1.3.2.57 Release Notes (2019-11-19)
 
 
 #### New features
diff --git a/R/CreateInputsCrit.R b/R/CreateInputsCrit.R
index ae64a8d6..4f314eae 100644
--- a/R/CreateInputsCrit.R
+++ b/R/CreateInputsCrit.R
@@ -188,7 +188,7 @@ CreateInputsCrit <- function(FUN_CRIT,
       stop("'BoolCrit' must be a (list of) vector(s) of boolean", call. = FALSE)
     }
     if (length(iListArgs2$BoolCrit) != LLL) {
-      stop("'BoolCrit' and 'InputsModel' series must have the same length", call. = FALSE)
+      stop("'BoolCrit' and the period defined in 'RunOptions' must have the same length", call. = FALSE)
     }
     
     ## check 'VarObs'
-- 
GitLab