# HG changeset patch
# User Laurent Bessard
# Date 1347522900 -7200
# Node ID 1a4f5ce629625934b4fceb753fd81cdf26c8870f
# Parent  5250fbf209990283222f16018d4ca0708e5c43b7
Adding error message when task interval value is not supported

diff -r 5250fbf20999 -r 1a4f5ce62962 stage4/generate_c/generate_c.cc
--- a/stage4/generate_c/generate_c.cc	Wed Sep 12 01:14:38 2012 +0200
+++ b/stage4/generate_c/generate_c.cc	Thu Sep 13 09:55:00 2012 +0200
@@ -353,11 +353,12 @@
   duration_c *duration = dynamic_cast<duration_c *>(symbol);
   
   if ((NULL == interval) && (NULL == duration)) ERROR;
+  	  {STAGE4_ERROR(symbol, symbol, "This type of interval value is not currently supported"); ERROR;}
 
   if (NULL != duration) {
     /* SYM_REF2(duration_c, neg, interval) */
     if (duration->neg != NULL)
-      {STAGE4_ERROR(duration, duration, "Negative TIME literals are not currently supported"); ERROR;}
+      {STAGE4_ERROR(duration, duration, "Negative TIME literals for interval are not currently supported"); ERROR;}
     return calculate_time(duration->interval);
   }