summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 286bbf4)
raw | patch | inline | side by side (parent: 286bbf4)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 15 Mar 2015 14:45:53 +0000 (10:45 -0400) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 15 Mar 2015 14:45:53 +0000 (10:45 -0400) |
src/frontend/analyzer.c | patch | blob | history |
index bef6b1d24d36f4fc55d4d01bb2ae5dfa745900c9..cf077de41174df7e913ae46b835fd429218b535c 100644 (file)
--- a/src/frontend/analyzer.c
+++ b/src/frontend/analyzer.c
sdb_strbuf_sprintf(errbuf, "Invalid %s iterator: %s %s "
"not iterable in %s context", MATCHER_SYM(op),
EXPR_TO_STRING(iter), SDB_STORE_TYPE_TO_NAME(iter->data_type),
- SDB_STORE_TYPE_TO_NAME(context));
+ context == -1 ? "generic" : SDB_STORE_TYPE_TO_NAME(context));
} /* iter_error */
static void
}
else {
sdb_strbuf_sprintf(errbuf,
- "Don't know how to analyze command %#x", node->cmd);
+ "Don't know how to analyze %s command (id=%#x)",
+ SDB_CONN_MSGTYPE_TO_STRING(node->cmd), node->cmd);
return -1;
}
if (context <= 0) {
sdb_strbuf_sprintf(errbuf, "Unable to determine the context "
- "(object type) for command %#x", node->cmd);
+ "(object type) for %s command (id=%#x)",
+ SDB_CONN_MSGTYPE_TO_STRING(node->cmd), node->cmd);
return -1;
}
if (analyze_matcher(context, -1, m, errbuf))