Merge branch 'feature/fix_hyperv_error'
This commit is contained in:
@@ -29,6 +29,8 @@ namespace Duplicati.Server.WebServer.RESTMethods
|
||||
// Early exit in case we are non-windows to prevent attempting to load Windows-only components
|
||||
if (Library.Utility.Utility.IsClientWindows)
|
||||
RealGET(key, info);
|
||||
else
|
||||
info.OutputOK(new string[0]);
|
||||
}
|
||||
|
||||
// Make sure the JIT does not attempt to inline this call and thus load
|
||||
@@ -40,7 +42,7 @@ namespace Duplicati.Server.WebServer.RESTMethods
|
||||
|
||||
if (!hypervUtility.IsHyperVInstalled)
|
||||
{
|
||||
info.OutputOK();
|
||||
info.OutputOK(new string[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -64,7 +66,7 @@ namespace Duplicati.Server.WebServer.RESTMethods
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
info.ReportClientError("Failed to enumerate Hyper-V virtual machines: " + ex.Message);
|
||||
info.ReportServerError("Failed to enumerate Hyper-V virtual machines: " + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ namespace Duplicati.Server.WebServer.RESTMethods
|
||||
// Early exit in case we are non-windows to prevent attempting to load Windows-only components
|
||||
if (Library.Utility.Utility.IsClientWindows)
|
||||
RealGET(key, info);
|
||||
else
|
||||
info.OutputOK(new string[0]);
|
||||
}
|
||||
|
||||
// Make sure the JIT does not attempt to inline this call and thus load
|
||||
@@ -40,7 +42,7 @@ namespace Duplicati.Server.WebServer.RESTMethods
|
||||
|
||||
if (!mssqlUtility.IsMSSQLInstalled)
|
||||
{
|
||||
info.OutputOK();
|
||||
info.OutputOK(new string[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -62,7 +64,7 @@ namespace Duplicati.Server.WebServer.RESTMethods
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
info.ReportClientError("Failed to enumerate Microsoft SQL Server databases: " + ex.Message);
|
||||
info.ReportServerError("Failed to enumerate Microsoft SQL Server databases: " + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user