mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 08:02:25 +02:00
lndcfg: give verbose err when failed to load config
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user