Do not pass None to mlog.exception

pull/5311/head
Daniel Mensinger 6 years ago
parent 236221061a
commit 74b535fea7
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 2
      mesonbuild/interpreter.py

@ -2454,7 +2454,7 @@ external dependencies (including libraries) must go to "dependencies".''')
with mlog.nested(): with mlog.nested():
# Suppress the 'ERROR:' prefix because this exception is not # Suppress the 'ERROR:' prefix because this exception is not
# fatal and VS CI treat any logs with "ERROR:" as fatal. # fatal and VS CI treat any logs with "ERROR:" as fatal.
mlog.exception(e, prefix=None) mlog.exception(e, prefix=mlog.yellow('Exception:'))
mlog.log('\nSubproject', mlog.bold(dirname), 'is buildable:', mlog.red('NO'), '(disabling)') mlog.log('\nSubproject', mlog.bold(dirname), 'is buildable:', mlog.red('NO'), '(disabling)')
return self.disabled_subproject(dirname) return self.disabled_subproject(dirname)
raise e raise e

Loading…
Cancel
Save