From 7adb944f92d0d31d9b85c8985248d272e7c8e4ec Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sat, 9 May 2020 12:34:51 +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 79e2a81..19dfe9f 100644 --- a/config.go +++ b/config.go @@ -51,7 +51,7 @@ func loadConfig() (*config, error) { // Compute the actual bind address based on the provided interface iface, err := net.InterfaceByName(config.BindIface) if err != nil { - return nil, fmt.Errorf("cannot find interface %s", config.BindIface) + return nil, fmt.Errorf("could not get interface by name %s: %w", config.BindIface, err) } addrs, err := iface.Addrs() if err != nil {