better error display for command line operations