From: Sebastian Harl Date: Mon, 31 Aug 2015 20:28:28 +0000 (+0200) Subject: analyzer: Fixed some error messages. X-Git-Tag: sysdb-0.8.0~37 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2a60a875d0938f44d21db79185d2f7c4f40424be;p=sysdb.git analyzer: Fixed some error messages. --- diff --git a/src/parser/analyzer.c b/src/parser/analyzer.c index 5b89016..2cb2816 100644 --- a/src/parser/analyzer.c +++ b/src/parser/analyzer.c @@ -553,11 +553,11 @@ static int analyze_timeseries(sdb_ast_timeseries_t *ts, sdb_strbuf_t *errbuf) { if (! ts->hostname) { - sdb_strbuf_sprintf(errbuf, "Missing hostname in STORE command"); + sdb_strbuf_sprintf(errbuf, "Missing hostname in TIMESERIES command"); return -1; } if (! ts->metric) { - sdb_strbuf_sprintf(errbuf, "Missing metric name in STORE command"); + sdb_strbuf_sprintf(errbuf, "Missing metric name in TIMESERIES command"); return -1; } if (ts->end <= ts->start) { @@ -565,7 +565,7 @@ analyze_timeseries(sdb_ast_timeseries_t *ts, sdb_strbuf_t *errbuf) sdb_strftime(start_str, sizeof(start_str), ts->start); sdb_strftime(end_str, sizeof(end_str), ts->end); sdb_strbuf_sprintf(errbuf, "Start time (%s) greater than " - "end time (%s) in STORE command", start_str, end_str); + "end time (%s) in TIMESERIES command", start_str, end_str); return -1; } return 0;