udebug-cli: fix reference to invalid variable in error message
authorFelix Fietkau <nbd@nbd.name>
Wed, 14 Jan 2026 12:10:38 +0000 (12:10 +0000)
committerFelix Fietkau <nbd@nbd.name>
Wed, 14 Jan 2026 12:10:41 +0000 (12:10 +0000)
Use the property ring_name of the ring.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
udebug-cli

index 159864341edcd36bb2e5dc44c54240c15d72e8f3..5d657cf2628ac6a3b4689de65e8b036f0797995b 100755 (executable)
@@ -283,7 +283,7 @@ function stream_data(log) {
        }, null, [ "udebug" ]);
        for (let ring in selected) {
                if (open_ring(ring, true) == null) {
-                       _warn(`Failed to open ring ${ring_name}\n`);
+                       _warn(`Failed to open ring ${ring.ring_name}\n`);
                        if (opts.force)
                                continue;