summaryrefslogtreecommitdiff
path: root/internal/gtserror/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gtserror/error.go')
-rw-r--r--internal/gtserror/error.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/gtserror/error.go b/internal/gtserror/error.go
index 85dc0d54c..21d580c4e 100644
--- a/internal/gtserror/error.go
+++ b/internal/gtserror/error.go
@@ -43,9 +43,10 @@ const (
// Unretrievable checks error for a stored "unretrievable" flag.
//
// Unretrievable indicates that a call to retrieve a resource
-// (account, status, etc) could not be fulfilled, either because
-// it was not found locally, or because some prerequisite remote
-// resource call failed, making it impossible to return the item.
+// (account, status, attachment, etc) could not be fulfilled,
+// either because it was not found locally, or because some
+// prerequisite remote resource call failed, making it impossible
+// to return the item.
func Unretrievable(err error) bool {
_, ok := errors.Value(err, unrtrvableKey).(struct{})
return ok