Skip to content
Snippets Groups Projects
Commit b870bc40 authored by Phil's avatar Phil
Browse files

Explicited argv[0] when an error occur at exec()ing tcpreplay

parent 0a4fdb8d
No related branches found
No related tags found
No related merge requests found
...@@ -273,7 +273,7 @@ def sendpfast(x, pps=None, mbps=None, realtime=None, loop=0, iface=None): ...@@ -273,7 +273,7 @@ def sendpfast(x, pps=None, mbps=None, realtime=None, loop=0, iface=None):
except KeyboardInterrupt: except KeyboardInterrupt:
log_interactive.info("Interrupted by user") log_interactive.info("Interrupted by user")
except Exception,e: except Exception,e:
log_interactive.error(e) log_interactive.error("while trying to exec [%s]: %s" % (argv[0],e))
finally: finally:
os.unlink(f) os.unlink(f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment