diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2018-12-09 12:12:48 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2018-12-09 20:50:08 +0300 |
commit | 074fa790ba6282772cd8b2d40926032228d17c81 (patch) | |
tree | a26ff21d9a70e5aa86f162eabd47dc199d6460f1 /lib/pleroma/web/xml/xml.ex | |
parent | cf85a9aea1949677a092c0ebc6c0e17475346632 (diff) | |
download | pleroma-074fa790ba6282772cd8b2d40926032228d17c81.tar.gz |
fix compile warnings
Diffstat (limited to 'lib/pleroma/web/xml/xml.ex')
-rw-r--r-- | lib/pleroma/web/xml/xml.ex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pleroma/web/xml/xml.ex b/lib/pleroma/web/xml/xml.ex index da3f68ecb..63d3302e0 100644 --- a/lib/pleroma/web/xml/xml.ex +++ b/lib/pleroma/web/xml/xml.ex @@ -28,12 +28,12 @@ defmodule Pleroma.Web.XML do |> :xmerl_scan.string() doc - catch - :exit, _error -> + rescue + _e -> Logger.debug("Couldn't parse XML: #{inspect(text)}") :error - rescue - e -> + catch + :exit, _error -> Logger.debug("Couldn't parse XML: #{inspect(text)}") :error end |