Merge pull request #4504 from cli/show-http-status
cs create: include HTTP status code in error from /user/codespaces/*/start
This commit is contained in:
commit
675ee316e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue