Merge pull request #3576 from warwickmm/dont_explicitly_rethrow
Do not explicitly rethrow exceptions
This commit is contained in:
@@ -178,7 +178,7 @@ namespace Duplicati.CommandLine.BackendTester
|
||||
backend.Test();
|
||||
curlist = backend.List();
|
||||
}
|
||||
catch (FolderMissingException fex)
|
||||
catch (FolderMissingException)
|
||||
{
|
||||
if (autoCreateFolders)
|
||||
{
|
||||
@@ -194,7 +194,7 @@ namespace Duplicati.CommandLine.BackendTester
|
||||
}
|
||||
|
||||
if (curlist == null)
|
||||
throw fex;
|
||||
throw;
|
||||
}
|
||||
|
||||
foreach (Library.Interface.IFileEntry fe in curlist)
|
||||
|
||||
@@ -447,8 +447,8 @@ namespace Duplicati.Server
|
||||
Console.WriteLine(Strings.Program.SeriousError(mex.ToString()));
|
||||
return 100;
|
||||
}
|
||||
else
|
||||
throw mex;
|
||||
|
||||
throw;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user