21285: Propagate HTTP status code in tunnel setup error.
[arvados.git] / lib / crunchrun / container_gateway.go
index 30f8957a2de7ccc33218302a1d72cbea09a3ecb7..5b68e2c50ebaa88168c31039706f6aa5a3b3c38f 100644 (file)
@@ -220,7 +220,7 @@ func (gw *Gateway) runTunnel(addr string) error {
                AuthSecret: gw.AuthSecret,
        })
        if err != nil {
-               return fmt.Errorf("error creating gateway tunnel: %s", err)
+               return fmt.Errorf("error creating gateway tunnel: %w", err)
        }
        mux, err := yamux.Client(tun.Conn, nil)
        if err != nil {