diff --git a/Duplicati/CommandLine/BackendTester/Program.cs b/Duplicati/CommandLine/BackendTester/Program.cs index afdf09dc2..1b997863e 100644 --- a/Duplicati/CommandLine/BackendTester/Program.cs +++ b/Duplicati/CommandLine/BackendTester/Program.cs @@ -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) diff --git a/Duplicati/Server/Program.cs b/Duplicati/Server/Program.cs index 97a812d76..d6f935da6 100644 --- a/Duplicati/Server/Program.cs +++ b/Duplicati/Server/Program.cs @@ -447,8 +447,8 @@ namespace Duplicati.Server Console.WriteLine(Strings.Program.SeriousError(mex.ToString())); return 100; } - else - throw mex; + + throw; } catch (Exception ex) {