From 3fb354b6e59d47728e6ad0c9358ff146cddc8928 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Thu, 22 May 2014 12:14:04 +0200 Subject: Add missing arguments constructing the InvaliRecipeError --- recipes/gnustl.recipe | 2 +- recipes/mingw-runtime.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/gnustl.recipe b/recipes/gnustl.recipe index 945afbef..6d7e4ae7 100644 --- a/recipes/gnustl.recipe +++ b/recipes/gnustl.recipe @@ -23,7 +23,7 @@ class Recipe(recipe.Recipe): def prepare(self): if self.config.target_platform != Platform.ANDROID: - raise InvalidRecipeError("Invalid platform") + raise InvalidRecipeError(self, "Invalid platform") def install(self): stl_prefix = os.path.join(self.config.toolchain_prefix, 'sources', diff --git a/recipes/mingw-runtime.recipe b/recipes/mingw-runtime.recipe index 7aa1f362..15ddb152 100644 --- a/recipes/mingw-runtime.recipe +++ b/recipes/mingw-runtime.recipe @@ -16,7 +16,7 @@ class Recipe(recipe.Recipe): def prepare(self): if self.config.target_platform != Platform.WINDOWS: - raise InvalidRecipeError("Invalid platform") + raise InvalidRecipeError(self, "Invalid platform") # mingw's static libraries self.mingw_static_files = ['%(host)s/lib/libmingwex.a', '%(host)s/lib/libdxerr9.a', -- cgit v1.2.3