Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1875)

Unified Diff: build/android/adb_reverse_forwarder.py

Issue 12640006: [android] Improve reverse forwarder error handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/adb_reverse_forwarder.py
diff --git a/build/android/adb_reverse_forwarder.py b/build/android/adb_reverse_forwarder.py
index ff6d77b159cc401c7108ec9369fc82b5d67097e6..bd612a813a04632d748609d535d8bfdc7dda4478 100755
--- a/build/android/adb_reverse_forwarder.py
+++ b/build/android/adb_reverse_forwarder.py
@@ -62,6 +62,11 @@ def main(argv):
time.sleep(60)
except KeyboardInterrupt:
sys.exit(0)
+ except OSError as e:
+ if e.errno == 2:
+ print 'Unable to start. Make sure you have built host_forwarder.'
bulach 2013/03/08 15:15:33 maybe push this down to forwarder.py Run itself?
+ sys.exit(1)
+ else: raise
finally:
forwarder_instance.Close()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698