Refactor the RateProvider

This commit is contained in:
nicolas.dorier
2018-05-03 03:32:42 +09:00
parent 43be1e191f
commit e57a488371
34 changed files with 583 additions and 616 deletions

View File

@@ -460,7 +460,7 @@ namespace BTCPayServer.Controllers
StatusMessage = $"Invoice {result.Data.Id} just created!";
return RedirectToAction(nameof(ListInvoices));
}
catch (RateUnavailableException)
catch (BitpayHttpException)
{
ModelState.TryAddModelError(nameof(model.Currency), "Unsupported currency");
return View(model);