projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af9aa8e
)
object fetcher: fix up error handling
author
Ariadne Conill
<ariadne@dereferenced.org>
Fri, 18 Oct 2019 02:42:25 +0000
(
02:42
+0000)
committer
Ariadne Conill
<ariadne@dereferenced.org>
Fri, 18 Oct 2019 14:50:09 +0000
(14:50 +0000)
lib/pleroma/object/fetcher.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/object/fetcher.ex
b/lib/pleroma/object/fetcher.ex
index 8975fb47e7af129b554579697c1f388bc537301a..9436e27306454d16ef869b1551e69da6fd140ae5 100644
(file)
--- a/
lib/pleroma/object/fetcher.ex
+++ b/
lib/pleroma/object/fetcher.ex
@@
-162,8
+162,8
@@
defmodule Pleroma.Object.Fetcher do
{:ok, %{status: code}} when code in [404, 410] ->
{:error, "Object has been deleted"}
-
_
->
- {:error,
"Could not fetch by AP id"
}
+
e
->
+ {:error,
e
}
end
end