Skip to content

Commit 2ccabda

Browse files
committed
Tweak error message
1 parent b0782fb commit 2ccabda

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/dashboard/src/prebuilds/detail/PrebuildDetailPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export const PrebuildDetailPage: FC = () => {
296296
<div className="py-4 px-6 flex flex-col gap-1">
297297
<PrebuildStatus prebuild={prebuild} />
298298
{prebuild?.status?.message && (
299-
<div className="text-pk-content-secondary truncate">
299+
<div className="text-pk-content-secondary line-clamp-2">
300300
{prebuild?.status.message}
301301
</div>
302302
)}

components/supervisor/pkg/supervisor/supervisor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,9 +1601,9 @@ func stopWhenTasksAreDone(wg *sync.WaitGroup, cfg *Config, shutdown chan Shutdow
16011601
if success.Failed() {
16021602
var msg []byte
16031603
if cfg.isImageBuild() {
1604-
msg = []byte("image build failed with " + string(success) + ". For further logs, try executing `gp validate` inside of a workspace")
1604+
msg = []byte("image build failed (" + string(success) + "). This is likely due to a misconfiguration in your Dockerfile. Debug this using `gp validate` (visit https://www.gitpod.io/docs/configure/workspaces#validate-your-gitpod-configuration) to learn more")
16051605
} else {
1606-
msg = []byte("headless task failed: " + string(success) + ". I have no idea if this is an image build or not 🤷‍♂️")
1606+
msg = []byte("headless task failed: " + string(success))
16071607
}
16081608
// we signal task failure via kubernetes termination log
16091609
err := os.WriteFile("/dev/termination-log", msg, 0o644)

0 commit comments

Comments
 (0)