Bug 1402445 - Tweak the error message for errors processing mozbuild files r=gps
authorWes Kocher <wkocher@mozilla.com>
Fri, 22 Sep 2017 12:44:24 -0700
changeset 383274 9e57229ccdb9c231c9506e115fd7f64fd84cb1b6
parent 383273 e73300d22ba597dc397b34fc901fa3ab8f2fda56
child 383275 e663536181b03e7fa5635617004d73a1f1b16780
push id95539
push userkwierso@gmail.com
push dateThu, 28 Sep 2017 00:01:12 +0000
treeherdermozilla-inbound@72de90e66155 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1402445
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1402445 - Tweak the error message for errors processing mozbuild files r=gps MozReview-Commit-ID: Js8F8OSgoWT
python/mozbuild/mozbuild/frontend/reader.py
--- a/python/mozbuild/mozbuild/frontend/reader.py
+++ b/python/mozbuild/mozbuild/frontend/reader.py
@@ -508,17 +508,17 @@ class SandboxValidationError(Exception):
     def __init__(self, message, context):
         Exception.__init__(self, message)
         self.context = context
 
     def __str__(self):
         s = StringIO()
 
         delim = '=' * 30
-        s.write('\n%s\nERROR PROCESSING MOZBUILD FILE\n%s\n\n' % (delim, delim))
+        s.write('\n%s\nFATAL ERROR PROCESSING MOZBUILD FILE\n%s\n\n' % (delim, delim))
 
         s.write('The error occurred while processing the following file or ')
         s.write('one of the files it includes:\n')
         s.write('\n')
         s.write('    %s/moz.build\n' % self.context.srcdir)
         s.write('\n')
 
         s.write('The error occurred when validating the result of ')
@@ -582,17 +582,17 @@ class BuildReaderError(Exception):
     def sandbox_error(self):
         return self.sandbox_exec or self.sandbox_load or \
             self.sandbox_called_error
 
     def __str__(self):
         s = StringIO()
 
         delim = '=' * 30
-        s.write('\n%s\nERROR PROCESSING MOZBUILD FILE\n%s\n\n' % (delim, delim))
+        s.write('\n%s\nFATAL ERROR PROCESSING MOZBUILD FILE\n%s\n\n' % (delim, delim))
 
         s.write('The error occurred while processing the following file:\n')
         s.write('\n')
         s.write('    %s\n' % self.actual_file)
         s.write('\n')
 
         if self.actual_file != self.main_file and not self.sandbox_load:
             s.write('This file was included as part of processing:\n')