Merge pull request #5802 from yyforyongyu/5318-fix-addr-format

lndcfg: give verbose err when failed to load config
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2021-09-30 20:14:08 -07:00
commit 91edfaed85
3 files changed
+7 -1

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ func main() {
if err != nil {
if e, ok := err.(*flags.Error); !ok || e.Type != flags.ErrHelp {
// Print error if not due to help request.
err = fmt.Errorf("failed to load config: %w", err)
_, _ = fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}