Correctly report backup API errors; ref pterodactyl/panel#2271

This commit is contained in:
Dane Everitt
2020-08-27 19:35:57 -07:00
parent 5f1ceeff90
commit a7ca6b2e34
2 changed files with 4 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ type RequestError struct {
// Returns the error response in a string form that can be more easily consumed.
func (re *RequestError) Error() string {
return fmt.Sprintf("%s: %s (HTTP/%s)", re.Code, re.Detail, re.Status)
return fmt.Sprintf("Error response from Panel: %s: %s (HTTP/%s)", re.Code, re.Detail, re.Status)
}
func (re *RequestError) String() string {