XML: handle erlang errors too
This commit is contained in:
parent
dca1d6d162
commit
aaa81d3540
@ -32,6 +32,10 @@ def parse_document(text) do
|
|||||||
:exit, _error ->
|
:exit, _error ->
|
||||||
Logger.debug("Couldn't parse XML: #{inspect(text)}")
|
Logger.debug("Couldn't parse XML: #{inspect(text)}")
|
||||||
:error
|
:error
|
||||||
|
rescue
|
||||||
|
e ->
|
||||||
|
Logger.debug("Couldn't parse XML: #{inspect(text)}")
|
||||||
|
:error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user