core: code cleanup, exception messages (#9631)

This commit is contained in:
Diego Heras
2020-09-24 22:02:45 +02:00
committed by GitHub
parent 39f7add32b
commit b212169dc2
11 changed files with 180 additions and 276 deletions

View File

@@ -87,9 +87,9 @@ namespace Jackett.Common.Services
}
}
catch (Exception ex)
catch (Exception e)
{
logger.Error("ERROR could not migrate settings directory " + ex);
logger.Error($"ERROR could not migrate settings directory\n{e}");
}
}
}
@@ -144,7 +144,7 @@ namespace Jackett.Common.Services
}
catch (Exception e)
{
logger.Error(e, "Error reading config file " + fullPath);
logger.Error($"Error reading config file {fullPath}\n{e}");
return default;
}
}
@@ -162,7 +162,7 @@ namespace Jackett.Common.Services
}
catch (Exception e)
{
logger.Error(e, "Error writing config file " + fullPath);
logger.Error($"Error writing config file {fullPath}\n{e}");
}
}