XRT icon indicating copy to clipboard operation
XRT copied to clipboard

xbutil reset return code is 0 on error

Open mortbopet opened this issue 2 years ago • 0 comments

Running

xbutil reset --device xxx

and with the device ID not being found, an error is reported:

ERROR: Specified device BDF 'xxx' not found
 Available devices:
  [yyy] : ...

I'd expect the program's return code to be non-zero given the error - however, 0 is returned. This is slightly annoying since it forces me to check stderr for any ERROR substrings to catch this.

mortbopet avatar Jan 16 '23 08:01 mortbopet