[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: do not use send_user in remote_expect
From: |
Ben Elliston |
Subject: |
PATCH: do not use send_user in remote_expect |
Date: |
Wed, 30 Mar 2016 12:00:31 +1100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
The only procs that should call send_user are pass, fail, etc.
Committed to master.
Ben
2016-03-30 Ben Elliston <address@hidden>
* lib/remote.exp (remote_expect): Use perror not send_user.
diff --git a/lib/remote.exp b/lib/remote.exp
index 95b6e9e..c88e5bb 100644
--- a/lib/remote.exp
+++ b/lib/remote.exp
@@ -1295,7 +1295,7 @@ proc remote_expect { board timeout args } {
if {$code == 1} {
if {[info exists string]} {
- send_user "ERROR OCCURRED: $errorInfo $errorCode $string"
+ perror "$errorInfo $errorCode $string"
}
if { $error_sect != "" } {
signature.asc
Description: Digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- PATCH: do not use send_user in remote_expect,
Ben Elliston <=