Commit 8e5cc8b
committed
fix: abort update when no matching asset is found
Fixes #217 (followup). When the GitHub release assets do not contain a jar matching the running mode (-GUI.jar or -CLI.jar), the loop previously exited silently, then the code spawned the Update process pointing at a non-existent update.jar and called System.exit(0). The user saw RetroMCP just close with no feedback. Now the update aborts with a clear IOException, surfaced through the standard task error dialog.1 parent c094346 commit 8e5cc8b
1 file changed
Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| |||
0 commit comments