[rtems-tools commit] tester: Print the host and port on error in telnet connect.
Chris Johns
chrisj at rtems.org
Sat Oct 21 05:20:32 UTC 2017
Module: rtems-tools
Branch: master
Commit: ac679ba950309474184ff1be0577c884b9af54a8
Changeset: http://git.rtems.org/rtems-tools/commit/?id=ac679ba950309474184ff1be0577c884b9af54a8
Author: Chris Johns <chrisj at rtems.org>
Date: Sat Oct 21 16:09:00 2017 +1100
tester: Print the host and port on error in telnet connect.
---
tester/rt/telnet.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tester/rt/telnet.py b/tester/rt/telnet.py
index 74c9e49..4e5e84a 100644
--- a/tester/rt/telnet.py
+++ b/tester/rt/telnet.py
@@ -74,9 +74,12 @@ class tty:
try:
self.conn.open(self.host, self.port, self.timeout)
except IOError as ioe:
- raise error.general('opening telnet dev: %s: %s' % (dev, ioe))
+ raise error.general('opening telnet: %s:%d: %s' % (self.host,
+ self.port,
+ ioe))
except:
- raise error.general('opening telnet dev: %s: unknown' % (dev))
+ raise error.general('opening telnet: %s:%d: unknown' % (self.host,
+ self.port))
def off(self):
self.is_on = False
More information about the vc
mailing list