Fix wallet import (#5695)

* Fix wallet import

* Improve error message for import of wallet file
This commit is contained in:
Nicolas Dorier
2024-01-24 17:49:15 +09:00
committed by GitHub
parent f31aa43c6a
commit 35b3fef7c5
10 changed files with 160 additions and 71 deletions

View File

@@ -100,7 +100,7 @@ namespace BTCPayServer.Controllers
}
if (fileContent is null || !_onChainWalletParsers.TryParseWalletFile(fileContent, network, out strategy, out _))
{
ModelState.AddModelError(nameof(vm.WalletFile), $"Importing wallet failed");
ModelState.AddModelError(nameof(vm.WalletFile), $"Import failed, make sure you import a compatible wallet format");
return View(vm.ViewName, vm);
}
}