From 7a8448ca380a5b697beb5afed18b36e9cb0fbe73 Mon Sep 17 00:00:00 2001
From: Delaigue Olivier <olivier.delaigue@irstea.priv>
Date: Fri, 18 Jan 2019 15:17:11 +0100
Subject: [PATCH] v1.1.2.30 CLEAN: wrong message error fixed in
 CreateRunOptions #5422

---
 DESCRIPTION          | 2 +-
 NEWS.rmd             | 2 +-
 R/CreateRunOptions.R | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index b07b949f..22fe42a2 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.1.2.29
+Version: 1.1.2.30
 Date: 2019-01-18
 Authors@R: c(
   person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
diff --git a/NEWS.rmd b/NEWS.rmd
index 8159e5f4..860e476a 100644
--- a/NEWS.rmd
+++ b/NEWS.rmd
@@ -13,7 +13,7 @@ output:
 
 
 
-### 1.1.2.29 Release Notes (2019-01-18) 
+### 1.1.2.30 Release Notes (2019-01-18) 
 
 
 
diff --git a/R/CreateRunOptions.R b/R/CreateRunOptions.R
index 415faf36..e04b399f 100644
--- a/R/CreateRunOptions.R
+++ b/R/CreateRunOptions.R
@@ -135,15 +135,15 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, IndPeriod_WarmUp = NULL, IndP
   }
   if (!is.null(IndPeriod_WarmUp)) {
     if (!is.vector(IndPeriod_WarmUp)) {
-      stop("IndPeriod_Run must be a vector of numeric values \n")
+      stop("'IndPeriod_WarmUp' must be a vector of numeric values \n")
       return(NULL)
     }
     if (!is.numeric(IndPeriod_WarmUp)) {
-      stop("IndPeriod_Run must be a vector of numeric values \n")
+      stop("'IndPeriod_WarmUp' must be a vector of numeric values \n")
       return(NULL)
     }
     if (storage.mode(IndPeriod_WarmUp) != "integer") {
-      stop("IndPeriod_Run should be of type integer \n")
+      stop("'IndPeriod_WarmUp' should be of type integer \n")
       return(NULL)
     }
     if (identical(IndPeriod_WarmUp, as.integer(0)) & verbose) {
-- 
GitLab