Skip to content

Commit 2588fd7

Browse files
committed
Better error handling for metrics sub-command (fixed issue#2)
1 parent 76b852c commit 2588fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/bzconsole

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ module BzConsole
712712
@plugin.run(:pre, host, :metrics, searchopts, opts[:metrics])
713713

714714
if searchopts == opts[:command][:query] then
715-
raise NoMethodError, "No method to deal with the query"
715+
raise ArgumentError, "No method to deal with the query. specify search options."
716716
end
717717

718718
while ts < te do

0 commit comments

Comments
 (0)