Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/api/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ func detailedInstallationError(response *http.Response) error {

body, err := io.ReadAll(response.Body) // response body is []byte
if err != nil {
return fmt.Errorf("the package could not be installed")
return fmt.Errorf("the package could not be installed, err=%q", err)
}

var result InstallationErrors
if err := json.Unmarshal(body, &result); err != nil {
return fmt.Errorf("the package could not be installed and the reason returned could not be parsed")
return fmt.Errorf("the package could not be installed and the reason returned could not be parsed, err=%q response=%q", err, body)
}

allErrors := append(result.ParseErrors, result.InstallationErrors...)
Expand Down