print() -> error()
This commit is contained in:
1 parent
494840c908
commit
35a33fc617
1 file changed
+1
-1
+1
-1
@@ -588,7 +588,7 @@ def ensureRoot():
|
|||||||
Probably we should only sudo when needed as per Big Switch's patch.
|
Probably we should only sudo when needed as per Big Switch's patch.
|
||||||
"""
|
"""
|
||||||
if os.getuid() != 0:
|
if os.getuid() != 0:
|
||||||
print( "*** Mininet must run as root." )
|
error( '*** Mininet must run as root.\n' )
|
||||||
exit( 1 )
|
exit( 1 )
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user