Adding error message when task interval value is not supported
authorLaurent Bessard
Thu, 13 Sep 2012 15:14:55 +0200
changeset 632 76c3d707ffa1
parent 631 1a4f5ce62962
child 633 73b56dc69e61
Adding error message when task interval value is not supported
stage4/generate_c/generate_c.cc
--- a/stage4/generate_c/generate_c.cc	Thu Sep 13 09:55:00 2012 +0200
+++ b/stage4/generate_c/generate_c.cc	Thu Sep 13 15:14:55 2012 +0200
@@ -352,7 +352,7 @@
   interval_c *interval = dynamic_cast<interval_c *>(symbol);
   duration_c *duration = dynamic_cast<duration_c *>(symbol);
   
-  if ((NULL == interval) && (NULL == duration)) ERROR;
+  if ((NULL == interval) && (NULL == duration))
   	  {STAGE4_ERROR(symbol, symbol, "This type of interval value is not currently supported"); ERROR;}
 
   if (NULL != duration) {