From 254fae2dc90875a7261970a9930e5cc5bda93c09 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Tue, 27 Jan 2015 15:23:48 -0800 Subject: [PATCH] Clarify which intf pair failed and raise exception --- mininet/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mininet/util.py b/mininet/util.py index 4b0e209..1780632 100644 --- a/mininet/util.py +++ b/mininet/util.py @@ -190,7 +190,8 @@ def makeIntfPair( intf1, intf2, addr1=None, addr2=None, node1=None, node2=None, if cmdOutput == '': return True else: - error( "Error creating interface pair: %s " % cmdOutput ) + raise Exception( "Error creating interface pair (%s,%s): %s " % + ( intf1, intf2, cmdOutput ) ) return False def retry( retries, delaySecs, fn, *args, **keywords ):