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