Rename LemmyError to Error to remove stutter

This commit is contained in:
2023-10-04 20:54:36 -07:00
parent b22e50d439
commit 9edacef768
2 changed files with 4 additions and 4 deletions

View File

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