From 7142a60b18df8759f9551408a4ba71aafbabfdcd Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 5 Nov 2024 07:42:11 +0100 Subject: [PATCH] Improve error message when parsing output of `ip -json link` --- setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.go b/setup.go index 80b3276..e49413d 100644 --- a/setup.go +++ b/setup.go @@ -220,7 +220,7 @@ func ifaceExists(netns, name string) bool { } err = json.Unmarshal(out, &ifaces) if err != nil { - log.Fatalf("failed to parse output from ip (%q): %v", out, err) + log.Fatalf("failed to parse output from %v (%q): %v", xargs, out, err) } for _, x := range ifaces { -- 2.45.2