Commit 5cc655e
committed
Improve error logging for unhandled promise rejections
This commit refactors the error logging in the desktop app's client hooks. It introduces a helper function `loggableError` that converts different error types into readable strings. The unhandled promise rejection handler now uses this helper to extract a more informative error message before logging it to file. This change improves error diagnostics by handling various error formats uniformly.1 parent b5566f8 commit 5cc655e
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
23 | 40 | | |
24 | 41 | | |
25 | 42 | | |
| |||
45 | 62 | | |
46 | 63 | | |
47 | 64 | | |
48 | | - | |
| 65 | + | |
| 66 | + | |
49 | 67 | | |
50 | 68 | | |
51 | 69 | | |
| |||
0 commit comments