summaryrefslogtreecommitdiff
path: root/internal/federation/dereferencing/error.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-04-06 13:19:55 +0200
committerLibravatar GitHub <noreply@github.com>2023-04-06 12:19:55 +0100
commitc54510bc7407f22b58bd56ad65b2e3f60e8e4dc5 (patch)
tree26b1650686a8be480cd3115e3c2d814aa50e91c0 /internal/federation/dereferencing/error.go
parent[bugfix] Always serialize orderedItems as array (#1673) (diff)
downloadgotosocial-c54510bc7407f22b58bd56ad65b2e3f60e8e4dc5.tar.xz
[bugfix] Normalize status content (don't parse status content as IRI) (#1665)
* start fannying about * finish up Normalize * tidy up * pin to tag * move errors about just a little bit
Diffstat (limited to 'internal/federation/dereferencing/error.go')
-rw-r--r--internal/federation/dereferencing/error.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/internal/federation/dereferencing/error.go b/internal/federation/dereferencing/error.go
index f2fae63ac..769150cef 100644
--- a/internal/federation/dereferencing/error.go
+++ b/internal/federation/dereferencing/error.go
@@ -66,20 +66,6 @@ func newErrTransportError(err error) error {
return &ErrTransportError{wrapped: err}
}
-// ErrWrongType indicates that an unexpected type was returned from a remote call;
-// for example, we were served a Person when we were looking for a statusable.
-type ErrWrongType struct {
- wrapped error
-}
-
-func (err *ErrWrongType) Error() string {
- return fmt.Sprintf("wrong received type: %v", err.wrapped)
-}
-
-func newErrWrongType(err error) error {
- return &ErrWrongType{wrapped: err}
-}
-
// ErrOther denotes some other kind of weird error, perhaps from a malformed json
// or some other weird crapola.
type ErrOther struct {