fix mistake of rethrowing exception (which loses call stack) to just throw (which does not)

This commit is contained in:
2020-09-21 18:54:30 +00:00
parent 632ea2e48e
commit 2193e36161
9 changed files with 10 additions and 10 deletions

View File

@@ -570,7 +570,7 @@ namespace AyaNova.Util
{
log.LogError(ex, $"FileUtil::BackupAttachments");
}
throw ex;
throw;
}
}

View File

@@ -579,7 +579,7 @@ namespace AyaNova.Core
else
{
//some other error
if (calledFromInternalJob) throw ex;
if (calledFromInternalJob) throw;
var msg = "E1020 - Error fetching / installing license key";
log.LogError(ex, msg);
return msg;

View File

@@ -34,7 +34,7 @@ namespace AyaNova.Util
{
log.LogError(ex, $"RunProgram error running command:{cmd} {arguments}");
}
throw ex;
throw;
}

View File

@@ -482,7 +482,7 @@ namespace AyaNova.Util
log.LogError(ex, "Seeder:SeedDatabase error during ops");
if (LogJob)
await JobsBiz.LogJobAsync(JobId, $"Seeder:SeedDatabase error during ops\r\n{ex.Message}");
throw ex;
throw;
}
finally
{