| commit | adcf5d79ca9e4dd370d24e6579932a3dbaf5bd50 | [log] [tgz] |
|---|---|---|
| author | Tim Windelschmidt <tim@monogon.tech> | Tue May 21 13:46:25 2024 +0200 |
| committer | Tim Windelschmidt <tim@monogon.tech> | Tue May 21 12:55:58 2024 +0000 |
| tree | bc038e72961171e033b9fb85abea5731ee38eb26 | |
| parent | 0726486159ad5ee1e1ddcd8d8e1e52bb6cf11e20 [diff] [blame] |
metropolis/test: fix %v in cases where we should use %w Change-Id: I3ad73960ad6655332c9d223e13796ca410dca582 Reviewed-on: https://review.monogon.dev/c/monogon/+/3095 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/test/nanoswitch/nanoswitch.go b/metropolis/test/nanoswitch/nanoswitch.go index 0bc65bd..b4ced56 100644 --- a/metropolis/test/nanoswitch/nanoswitch.go +++ b/metropolis/test/nanoswitch/nanoswitch.go
@@ -187,7 +187,7 @@ Scope: netlink.SCOPE_UNIVERSE, } if err := netlink.RouteAdd(route); err != nil { - return fmt.Errorf("could not add default route: netlink.RouteAdd(%+v): %v", route, err) + return fmt.Errorf("could not add default route: netlink.RouteAdd(%+v): %w", route, err) } return nil }