From a5a55e9447e1bd5449a60793870bfadc84e0fbc5 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sat, 9 May 2020 12:35:02 +0200 Subject: [PATCH] Properly wrap errors from config.go Co-authored-by: Leo Antunes --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 19dfe9f..4a4b1d7 100644 --- a/config.go +++ b/config.go @@ -55,7 +55,7 @@ func loadConfig() (*config, error) { } addrs, err := iface.Addrs() if err != nil { - return nil, fmt.Errorf("no available ip address on interface %s", config.BindIface) + return nil, fmt.Errorf("could not get addresses for interface %s: %w", config.BindIface, err) } if len(addrs) > 0 { if addr, ok := addrs[0].(*net.IPNet); ok {