mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Do not crash on invocie creation error for greenfield (Fix #2111)
This commit is contained in:
parent
76e46d2fa7
commit
97b00053c4
1 changed files with 1 additions and 2 deletions
|
@ -10,8 +10,7 @@ namespace BTCPayServer.Client.Models
|
|||
}
|
||||
public GreenfieldAPIError(string code, string message)
|
||||
{
|
||||
if (code == null)
|
||||
throw new ArgumentNullException(nameof(code));
|
||||
code = code ?? "generic-error";
|
||||
if (message == null)
|
||||
throw new ArgumentNullException(nameof(message));
|
||||
Code = code;
|
||||
|
|
Loading…
Add table
Reference in a new issue