Added error handling for cloud panel. Added pager to admin domain overview. Chnagelog
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
@using Moonlight.App.Exceptions
|
||||
@using Moonlight.App.Services
|
||||
@using Logging.Net
|
||||
@using Moonlight.App.ApiClients.CloudPanel
|
||||
@inherits ErrorBoundaryBase
|
||||
|
||||
@inject AlertService AlertService
|
||||
@@ -62,11 +63,11 @@ else
|
||||
|
||||
Logger.Warn($"Wings exception status code: {wingsException.StatusCode}");
|
||||
}
|
||||
else if (exception is PleskException pleskException)
|
||||
else if (exception is CloudPanelException cloudPanelException)
|
||||
{
|
||||
await AlertService.Error(
|
||||
SmartTranslateService.Translate("Error from plesk"),
|
||||
pleskException.Message
|
||||
SmartTranslateService.Translate("Error from cloud panel"),
|
||||
cloudPanelException.Message
|
||||
);
|
||||
}
|
||||
else if (exception is NotImplementedException)
|
||||
|
||||
Reference in New Issue
Block a user