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

Unified Diff: sdk_build/pylib/errors.py

Issue 1701323003: Add the beginnings of scripts to produce SDKs. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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
Index: sdk_build/pylib/errors.py
diff --git a/sdk_build/pylib/errors.py b/sdk_build/pylib/errors.py
new file mode 100644
index 0000000000000000000000000000000000000000..f90abfdcd97fdb8b9191461a7e33a0e3d4b8c99d
--- /dev/null
+++ b/sdk_build/pylib/errors.py
@@ -0,0 +1,15 @@
+# Copyright 2016 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.
+
+"""Error-handling support functions."""
+
+
+import os.path
+import sys
+
+
+def FatalError(message):
+ print >> sys.stderr, "%s: fatal error: %s" % (os.path.basename(sys.argv[0]),
+ message)
+ sys.exit(1)

Powered by Google App Engine
This is Rietveld 408576698