mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
remove hack #2070
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user