mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Clarify payment method criteria error message (#2989)
As requested by @BTCBellyButton, this clarifies the error message shown resulting from an invalid payment method criteria. https://github.com/btcpayserver/btcpayserver/pull/2975#issuecomment-945218280
This commit is contained in:
parent
13d9930955
commit
791d0abb34
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ namespace BTCPayServer.Controllers
|
|||
if (!CurrencyValue.TryParse(methodCriterion.Value, out var value))
|
||||
{
|
||||
model.AddModelError(viewModel => viewModel.PaymentMethodCriteria[index].Value,
|
||||
$"{methodCriterion.PaymentMethod}: invalid format (1.0 USD)", this);
|
||||
$"{methodCriterion.PaymentMethod}: Invalid format. Make sure to enter a valid amount and currency code. Examples: '5 USD', '0.001 BTC'", this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue