Commit aab345f
committed
Use RESOURCE_BUSY error code for session conflicts
Changes INTERNAL_ERROR (500) to RESOURCE_BUSY (409) for "session
already exists" errors. This prevents noisy ERROR-level logs during
wrangler dev hot reloads since the SDK only logs 5xx errors.
Also improves the debug message to clarify state divergence.1 parent 933cf84 commit aab345f
File tree
2 files changed
+7
-5
lines changed- packages
- sandbox-container/src/services
- sandbox/src
2 files changed
+7
-5
lines changedLines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 37 | + | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1019 | 1022 | | |
1020 | 1023 | | |
1021 | 1024 | | |
| |||
0 commit comments