mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-20 02:27:21 +01:00
Merge pull request #6071 from sputn1ck/fix-error-msgs
routerrpc: fix wrong error messages
This commit is contained in:
commit
94bbad3fd1
@ -661,11 +661,11 @@ func (r *RouterBackend) extractIntentFromSendRequest(
|
||||
"cannot appear together")
|
||||
|
||||
case len(rpcPayReq.PaymentHash) > 0:
|
||||
return nil, errors.New("dest and payment_hash " +
|
||||
return nil, errors.New("payment_hash and payment_request " +
|
||||
"cannot appear together")
|
||||
|
||||
case rpcPayReq.FinalCltvDelta != 0:
|
||||
return nil, errors.New("dest and final_cltv_delta " +
|
||||
return nil, errors.New("final_cltv_delta and payment_request " +
|
||||
"cannot appear together")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user