Commit 01fe24da authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

recipes/custom.py: Give a better error when plugin not found

Part-of: <gstreamer/cerbero!497>
parent 3d86db53
......@@ -59,6 +59,9 @@ class GStreamer(recipe.Recipe):
return
platform_files_category = 'platform_' + files_category
if hasattr(self, platform_files_category):
pf = getattr(self, platform_files_category)
if self.config.target_platform not in pf:
raise FatalError('plugin {!r} not found in category {!r}'.format(entry, files_category))
pfc = getattr(self, platform_files_category)[self.config.target_platform]
if entry in pfc:
pfc.remove(entry)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment