improve error reporting

without this patch the cli util throws a bunch of stack traces that make it
more difficult for end users to determine what is actually happening