Bug 1039164: Prettier handling of invalid hgrc files by mach. r=gps

This commit is contained in:
Chris Kitching 2014-07-17 01:21:06 +01:00
parent a954b1c596
commit 665b00fc20

View File

@ -157,9 +157,10 @@ class MercurialSetupWizard(object):
try:
c = MercurialConfig(config_paths)
except ConfigObjError as e:
print('Error importing existing Mercurial config!\n'
'%s\n'
'If using quotes, they must wrap the entire string.' % e)
print('Error importing existing Mercurial config!\n')
for error in e.errors:
print(error.message)
return 1
print(INITIAL_MESSAGE)