funding: properly display our 1-byte error code messages
This commit is contained in:
2 files changed
+1
-3
No files matched your search
+1
-1
@@ -2220,7 +2220,7 @@ func (f *fundingManager) handleErrorMsg(fmsg *fundingErrorMsg) {
|
||||
|
||||
// If this isn't a simple error code, then we'll display the entire
|
||||
// thing.
|
||||
if len(protocolErr.Data) > 0 {
|
||||
if len(protocolErr.Data) > 1 {
|
||||
resCtx.err <- grpc.Errorf(
|
||||
lnErr.ToGrpcCode(), string(protocolErr.Data),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user