Include HTTP status code in error

This commit is contained in:
Alan Donovan 2021-10-13 07:00:55 -04:00
parent 968b093eda
commit 9302e68c92

View file

@ -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