Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 """Error-handling support functions.""" | |
| 6 | |
| 7 | |
| 8 import os.path | |
| 9 import sys | |
| 10 | |
| 11 | |
| 12 def FatalError(message): | |
| 13 print >> sys.stderr, "%s: fatal error: %s" % (os.path.basename(sys.argv[0]), | |
| 14 message) | |
| 15 sys.exit(1) | |
| OLD | NEW |