Commit 60fee51
fix: exit cleanly on failed login in oiecommand (#224)
UnauthorizedException was caught by the generic ClientException handler
which only printed a stack trace and returned, leaving Jersey HTTP client
threads running and the process hanging indefinitely.
Catch UnauthorizedException before ClientException, print a clear
"invalid username or password" message, and call System.exit(1) so the
process terminates. Also exit on other ClientExceptions rather than
swallowing them silently.
Fixes #224
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 19cd7aa commit 60fee51
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
221 | 225 | | |
222 | | - | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
0 commit comments