Commit b445be2
committed
Handles exceptions when loading service config
Improves the robustness of the service configuration loading process by catching potential exceptions.
Specifically, it catches exceptions when attempting to access the AppData path and unauthorized access exceptions when reading the service configuration file. This prevents the service from crashing and provides more informative error messages to the user.1 parent bb45fd0 commit b445be2
File tree
1 file changed
+18
-1
lines changed1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
24 | 35 | | |
25 | 36 | | |
26 | 37 | | |
| |||
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
55 | 72 | | |
56 | 73 | | |
| |||
0 commit comments