mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
refactor: show error detail in ListPlugins temp data.
This commit is contained in:
@@ -26,12 +26,14 @@ namespace BTCPayServer.Controllers
|
||||
{
|
||||
availablePlugins = await pluginService.GetRemotePlugins(search);
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
var errorDetail = ex.GetBaseException().Message;
|
||||
|
||||
TempData.SetStatusMessageModel(new StatusMessageModel
|
||||
{
|
||||
Severity = StatusMessageModel.StatusSeverity.Error,
|
||||
Message = StringLocalizer["Remote plugins lookup failed. Try again later."].Value
|
||||
Message = StringLocalizer["Remote plugins lookup failed. Try again later. Error: {0}", errorDetail].Value
|
||||
});
|
||||
availablePlugins = Array.Empty<PluginService.AvailablePlugin>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user