mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-26 21:00:21 +00:00
build: Set a default error message for #3692
This change will prevent annoying exceptions from appearing when error messages are missing.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user