Skip to content

Commit

Permalink
Merge pull request cli#4504 from cli/show-http-status
Browse files Browse the repository at this point in the history
cs create: include HTTP status code in error from /user/codespaces/*/start
  • Loading branch information
adonovan authored Oct 13, 2021
2 parents aa22707 + 9302e68 commit 675ee31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/codespaces/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (a *API) StartCodespace(ctx context.Context, codespaceName string) error {
if len(b) > 100 {
b = append(b[:97], "..."...)
}
return fmt.Errorf("failed to start codespace: %s", b)
return fmt.Errorf("failed to start codespace: %s (%s)", b, resp.Status)
}

return nil
Expand Down

0 comments on commit 675ee31

Please sign in to comment.