Commit 90bf8c07 authored by Tom's avatar Tom Committed by Heinz N. Gies

Explain error when query funciton is not found (#42)

parent 1dbf3dd1
......@@ -107,6 +107,10 @@ error_string({error, {not_found, {var, Name}}}) ->
error_string({error, {not_found, {glob, Glob}}}) ->
["No series matches ", dqe_lib:glob_to_string(Glob), "!"];
error_string({error, {not_found, Name, Args}}) when is_list(Args) ->
ArgLst = [atom_to_list(A) || A <- Args],
["Not recognized function ", Name, $(, string:join(ArgLst, ", "), ")."];
error_string({error, no_results}) ->
"No results were returned for the query.";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment