Skip to content

Commit 41f59f9

Browse files
author
Max Pixel
committed
fix(sdk/dotnet): attempt to make bootstrap exec error actually trace
1 parent 9232646 commit 41f59f9

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

sdk/dotnet/bootstrap/main.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package main
66
import (
77
"context"
88
"dagger/bootstrap/internal/dagger"
9-
"fmt"
9+
"strconv"
1010
)
1111

1212
type Bootstrap struct {
@@ -45,13 +45,9 @@ func ExecPrintErrors(cmd []string) dagger.WithContainerFunc {
4545
stderr = "<failed to get stderr>"
4646
}
4747

48-
// Log the error
49-
fmt.Printf("Command failed with exit code %d\nstdout: %s\nstderr: %s\n", exitCode, stdout, stderr)
50-
51-
return r.WithExec(cmd)
48+
panic("Command failed with exit code " + strconv.Itoa(exitCode) + "\nstdout: " + stdout + "\nstderr: " + stderr + "\n")
5249
}
5350

54-
// Return the container regardless of success or failure
5551
return container
5652
})
5753
}

0 commit comments

Comments
 (0)