diff --git a/BTCPayServer/Controllers/StoresController.BTCLike.cs b/BTCPayServer/Controllers/StoresController.BTCLike.cs index 7df0b3173..e249d9522 100644 --- a/BTCPayServer/Controllers/StoresController.BTCLike.cs +++ b/BTCPayServer/Controllers/StoresController.BTCLike.cs @@ -328,7 +328,15 @@ namespace BTCPayServer.Controllers var network = _NetworkProvider.GetNetwork(cryptoCode); var client = _ExplorerProvider.GetExplorerClient(cryptoCode); var response = await client.GenerateWalletAsync(request); - + if (response == null) + { + TempData.SetStatusMessageModel(new StatusMessageModel() + { + Severity = StatusMessageModel.StatusSeverity.Error, + Html = "There was an error generating your wallet. Is your node available?" + }); + return RedirectToAction("AddDerivationScheme", new {storeId, cryptoCode}); + } var store = HttpContext.GetStoreData(); var result = await AddDerivationScheme(storeId, new DerivationSchemeViewModel()