summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df77814)
raw | patch | inline | side by side (parent: df77814)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 31 Aug 2015 20:28:28 +0000 (22:28 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 31 Aug 2015 20:28:28 +0000 (22:28 +0200) |
src/parser/analyzer.c | patch | blob | history |
diff --git a/src/parser/analyzer.c b/src/parser/analyzer.c
index 5b89016609e0aaa8aba20a6a4a9f5d648262fb80..2cb28161c2551f392811e1c82eb6af7e1a892e40 100644 (file)
--- a/src/parser/analyzer.c
+++ b/src/parser/analyzer.c
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) {
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;