Code

add filename to illegal update message -- he at uninett.no
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 29 Jun 2008 16:24:26 +0000 (16:24 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 29 Jun 2008 16:24:26 +0000 (16:24 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1442 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_update.c

index 147e833db09d1b5d05eeb792b1adad4d937dfc28..261255d7347186167ef6b451b62d8c26ab4a65bb 100644 (file)
@@ -533,9 +533,9 @@ _rrd_update(const char *filename, const char *tmplt, int argc, const char **argv
        if(current_time < rrd.live_head->last_up || 
          (current_time == rrd.live_head->last_up && 
           (long)current_time_usec <= (long)rrd.live_head->last_up_usec)) {
-           rrd_set_error("illegal attempt to update using time %ld when "
+           rrd_set_error("%s: illegal attempt to update using time %ld when "
                          "last update time is %ld (minimum one second step)",
-                         current_time, rrd.live_head->last_up);
+                         filename, current_time, rrd.live_head->last_up);
            free(step_start);
            break;
        }