Commit cb1e6c3c authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

cli: Error reporting for query filter parsing


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 3f2f55bb
......@@ -1901,6 +1901,9 @@ def FormatError(err):
"%s" % msg)
elif isinstance(err, errors.JobLost):
obuf.write("Error checking job status: %s" % msg)
elif isinstance(err, errors.QueryFilterParseError):
obuf.write("Error while parsing query filter: %s\n" % err.args[0])
obuf.write("\n".join(err.GetDetails()))
elif isinstance(err, errors.GenericError):
obuf.write("Unhandled Ganeti error: %s" % msg)
elif isinstance(err, JobSubmittedException):
......
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