diff options
author | Thomas Nagy <tnagy@waf.io> | 2016-10-20 21:03:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-10-21 17:11:26 +0200 |
commit | d38baa65cabdcc576e966fac7128242fb010abe5 (patch) | |
tree | 52502b4b9ba899ca5ddda6fb3d231faf4a5f41f9 /waftools/dependencies.py | |
parent | 8b00d82b79393d0c09b1084c913e4067b9d8eaf5 (diff) | |
download | mpv-d38baa65cabdcc576e966fac7128242fb010abe5.tar.bz2 mpv-d38baa65cabdcc576e966fac7128242fb010abe5.tar.xz |
build: Set a default error message for #3692
This change will prevent annoying exceptions from
appearing when error messages are missing.
Diffstat (limited to 'waftools/dependencies.py')
-rw-r--r-- | waftools/dependencies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waftools/dependencies.py b/waftools/dependencies.py index c1f3fdb022..87f236b362 100644 --- a/waftools/dependencies.py +++ b/waftools/dependencies.py @@ -119,7 +119,7 @@ the autodetection check failed.".format(self.identifier) if self.enabled_option() == False: return if self.attributes.get('req', False): - raise ConfigurationError(self.attributes['fmsg']) + raise ConfigurationError(self.attributes.get('fmsg', 'Unsatisfied requirement')) def skip(self, reason='disabled', color='YELLOW'): self.ctx.end_msg(self.__message__(reason), color) |