Rename LemmyError to Error to remove stutter
This commit is contained in:
2
lemmy.go
2
lemmy.go
@@ -148,7 +148,7 @@ type emptyResponse struct {
|
||||
// resError returns an error if the the response contains an error
|
||||
func resError(res *http.Response, err Optional[string]) error {
|
||||
if errstr, ok := err.Value(); ok {
|
||||
return LemmyError{
|
||||
return Error{
|
||||
Code: res.StatusCode,
|
||||
ErrStr: errstr,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user