This commit is contained in:
Nicolas Dorier
2021-11-20 22:41:35 +09:00
committed by GitHub
parent c088e0fd55
commit c01fae5fcd
4 changed files with 6 additions and 6 deletions

View File

@@ -240,7 +240,7 @@ namespace BTCPayServer.Controllers.GreenField
var inv = await lightningClient.GetInvoice(id);
if (inv == null)
{
return NotFound();
return this.CreateAPIError(404, "invoice-not-found", "Impossible to find a lightning invoice with this id");
}
return Ok(ToModel(inv));
}