From d38baa65cabdcc576e966fac7128242fb010abe5 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Thu, 20 Oct 2016 21:03:04 +0200 Subject: build: Set a default error message for #3692 This change will prevent annoying exceptions from appearing when error messages are missing. --- waftools/dependencies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'waftools') 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) -- cgit v1.2.3