cmd: better error handling when using oauth