mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
remove hack #2070
This commit is contained in:
parent
8405ce6369
commit
a64dd9af16
@ -276,15 +276,7 @@ namespace BTCPayServer.Controllers.GreenField
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var nameSpace = ex.GetType().Namespace;
|
||||
var isLnClientError = nameSpace != null &&
|
||||
nameSpace.StartsWith("BTCPayServer.Lightning",
|
||||
StringComparison.OrdinalIgnoreCase);
|
||||
if (isLnClientError)
|
||||
{
|
||||
return this.CreateAPIError("invoice-error", ex.Message);
|
||||
}
|
||||
throw;
|
||||
return this.CreateAPIError("generic-error", ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user