X Tutup
Skip to content

Commit 9302e68

Browse files
committed
Include HTTP status code in error
1 parent 968b093 commit 9302e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/codespaces/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func (a *API) StartCodespace(ctx context.Context, codespaceName string) error {
341341
if len(b) > 100 {
342342
b = append(b[:97], "..."...)
343343
}
344-
return fmt.Errorf("failed to start codespace: %s", b)
344+
return fmt.Errorf("failed to start codespace: %s (%s)", b, resp.Status)
345345
}
346346

347347
return nil

0 commit comments

Comments
 (0)
X Tutup