Commit f85cf44
Differentiate timeout vs prebuilt binary failure in 500 error message (#1087)
The 500 error page always blamed "no prebuilt binary" regardless of
cause. When the install aborts after the 26s timeout, users should see a
timeout-specific message instead.
- **`src/pages/_document.tsx`**: Detect `ABORT_ERR` code on caught
errors, pass `isTimeout` prop to `<ServerError>`
- **`src/pages/500.tsx`**: Conditionally render timeout message
("package took too long to install") vs the existing prebuilt binary
message
When a timeout occurs, the user now sees:
> *"This can happen when the package took too long to install and the
request timed out."*
Instead of the misleading prebuilt binary message.
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: styfle <229881+styfle@users.noreply.github.com>
Co-authored-by: Steven <steven@ceriously.com>1 parent fbc31ce commit f85cf44
2 files changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
256 | 258 | | |
257 | | - | |
| 259 | + | |
258 | 260 | | |
259 | 261 | | |
260 | 262 | | |
| |||
0 commit comments