From 6fa16070e85e07469be9d60973c341f4119dea2b Mon Sep 17 00:00:00 2001 From: juanmont Date: Thu, 31 May 2018 12:01:35 +0200 Subject: [PATCH] Changed error message for month (#2136) --- src/vm_template/ScheduledAction.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vm_template/ScheduledAction.cc b/src/vm_template/ScheduledAction.cc index 9a1fd45fdf..cf686dd1aa 100644 --- a/src/vm_template/ScheduledAction.cc +++ b/src/vm_template/ScheduledAction.cc @@ -113,7 +113,7 @@ bool SchedAction::days_in_range(Repeat r, std::string& error) { static const char * e[] = { "Days in a week have to be in [0,6] range", //WEEKLY - 0 - "Days in a month have to be in [0,31] range", // MONTHLY - 1 + "Days in a month have to be in [1,31] range", // MONTHLY - 1 "Days in a year have to be in [0,365] range", // YEARLY - 2 "Hours have to be in [0,168] range" // HOURLY - 3 }; @@ -215,7 +215,7 @@ int SchedAction::parse(std::string& error, bool clean) rc_e = endon(eo); rc_ev = ends_in_range(eo, error); - + if ( rc_e == -1 ) { error = "Error parsing END_TYPE attribute"; @@ -230,7 +230,7 @@ int SchedAction::parse(std::string& error, bool clean) { return -1; } - + if ( !days_in_range(r, error) ) { return -1;