-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Copy link
Labels
Description
when a startup script fails (especially if its in the middle of logs), the admin/developer on the task page has no idea when they are on the task page. let's show an error like we do in the web terminal
coder/site/src/pages/TerminalPage/TerminalAlerts.tsx
Lines 67 to 105 in 5ecab7b
| <TerminalAlert | |
| severity="warning" | |
| dismissible | |
| actions={<RefreshSessionButton />} | |
| > | |
| The workspace{" "} | |
| <Link | |
| title="startup script has exited with an error" | |
| href={docs( | |
| "/admin/templates/troubleshooting#startup-script-exited-with-an-error", | |
| )} | |
| target="_blank" | |
| rel="noreferrer" | |
| > | |
| startup script has exited with an error | |
| </Link> | |
| , we recommend reloading this session and{" "} | |
| <Link | |
| title=" debugging the startup script" | |
| href={docs("/admin/templates/troubleshooting#startup-script-issues")} | |
| target="_blank" | |
| rel="noreferrer" | |
| > | |
| debugging the startup script | |
| </Link>{" "} | |
| because{" "} | |
| <Link | |
| title="your workspace may be incomplete." | |
| href={docs( | |
| "/admin/templates/troubleshooting#your-workspace-may-be-incomplete", | |
| )} | |
| target="_blank" | |
| rel="noreferrer" | |
| > | |
| your workspace may be incomplete. | |
| </Link>{" "} | |
| </TerminalAlert> | |
| ); | |
| }; |