Bug 1057871 - Print full path of mozconfig file used on 'mach ./configure' when error in mozconfig throws an exception r=gps

This commit is contained in:
Arnaud Sourioux 2014-09-03 12:14:00 +02:00
parent f3a49ddd8d
commit afd69a9841

View File

@ -572,6 +572,19 @@ class MachCommandBase(MozbuildObject):
e.objdir2))
sys.exit(1)
except MozconfigLoadException as e:
print('Error loading mozconfig: ' + e.path)
print('')
print(e.message)
if e.output:
print('')
print('mozconfig output:')
print('')
for line in e.output:
print(line)
sys.exit(1)
MozbuildObject.__init__(self, topsrcdir, context.settings,
context.log_manager, topobjdir=topobjdir)