From a7d846ac4039a14fcd25e2c7e15dd5cae82515dc Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 10 Oct 2017 19:37:49 -0700 Subject: [PATCH] lnwire: add godoc comments for lnwire.FailureMessage --- lnwire/onion_error.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lnwire/onion_error.go b/lnwire/onion_error.go index 98e3867e..6f875004 100644 --- a/lnwire/onion_error.go +++ b/lnwire/onion_error.go @@ -15,7 +15,13 @@ import ( // FailureMessage represents the onion failure object identified by its unique // failure code. type FailureMessage interface { + // Code returns a failure code describing the exact nature of the + // error. Code() FailCode + + // Error returns a human readable string describing the error. With + // this method, the FailureMessage interface meets the built-in error + // interface. Error() string }