no need to log when throwing - that gets logged.

This commit is contained in:
Claus
2018-01-10 11:13:28 +01:00
parent eb94572361
commit c6443c477f

View File

@@ -75,12 +75,10 @@ namespace Umbraco.Web.Editors
}
catch (IOException e)
{
Logger.Error<TourController>("Error while trying to read file: " + tourFile, e);
throw new IOException("Error while trying to read file: " + tourFile, e);
}
catch (JsonReaderException e)
{
Logger.Error<TourController>("Error while trying to parse content as tour data: " + tourFile, e);
throw new JsonReaderException("Error while trying to parse content as tour data: " + tourFile, e);
}
}