Make rate calculation scriptable

This commit is contained in:
nicolas.dorier
2018-05-04 01:46:52 +09:00
parent f460837f96
commit 6dc4bfaefe
22 changed files with 472 additions and 121 deletions

View File

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