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

Unified Diff: mojo/tools/mopy/print_process_error.py

Issue 878933003: Move the apptest runner and parts of mopy to the public SDK. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « mojo/tools/mopy/perf_data_uploader.py ('k') | mojo/tools/mopy/transitive_hash.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mopy/print_process_error.py
diff --git a/mojo/tools/mopy/print_process_error.py b/mojo/tools/mopy/print_process_error.py
deleted file mode 100644
index ec565d14e40c02ab618b7ffd79269bfad4ab35d3..0000000000000000000000000000000000000000
--- a/mojo/tools/mopy/print_process_error.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-def print_process_error(command_line, error):
- """Properly format an exception raised from a failed command execution."""
-
- if command_line:
- print 'Failed command: %r' % command_line
- else:
- print 'Failed command:'
- print 72 * '-'
-
- if hasattr(error, 'returncode'):
- print ' with exit code %d' % error.returncode
- print 72 * '-'
-
- if hasattr(error, 'output'):
- print error.output
- else:
- print error
- print 72 * '-'
« no previous file with comments | « mojo/tools/mopy/perf_data_uploader.py ('k') | mojo/tools/mopy/transitive_hash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698