From b1b2214bef6c4d63f75c0c374facf2bd99c3b1d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Tron=C3=AD=C4=8Dek?= Date: Tue, 15 Oct 2024 11:53:11 +0200 Subject: [PATCH] Provide a nicer image build failed message (#20281) * Provide a nicer image build failed message * an error message that actually shows up * Tweak error message * Make env retrieval consistent in supervisor config * Fix broken docs link in dashboard --- .../src/prebuilds/detail/PrebuildDetailPage.tsx | 2 +- components/dashboard/src/start/StartWorkspace.tsx | 2 +- .../server/src/workspace/workspace-starter.ts | 7 +++++-- components/supervisor/pkg/supervisor/config.go | 8 ++++++++ components/supervisor/pkg/supervisor/supervisor.go | 13 +++++++++---- 5 files changed, 24 insertions(+), 8 deletions(-) diff --git a/components/dashboard/src/prebuilds/detail/PrebuildDetailPage.tsx b/components/dashboard/src/prebuilds/detail/PrebuildDetailPage.tsx index f1636ee2b96298..cbc4349abaebac 100644 --- a/components/dashboard/src/prebuilds/detail/PrebuildDetailPage.tsx +++ b/components/dashboard/src/prebuilds/detail/PrebuildDetailPage.tsx @@ -296,7 +296,7 @@ export const PrebuildDetailPage: FC = () => {
{prebuild?.status?.message && ( -
+
{prebuild?.status.message}
)} diff --git a/components/dashboard/src/start/StartWorkspace.tsx b/components/dashboard/src/start/StartWorkspace.tsx index 505216670f8f54..633f5bd694ce13 100644 --- a/components/dashboard/src/start/StartWorkspace.tsx +++ b/components/dashboard/src/start/StartWorkspace.tsx @@ -822,7 +822,7 @@ function ImageBuildView(props: ImageBuildViewProps) { 💡 You can use the gp validate command to validate the workspace configuration from the editor terminal.