diff options
Diffstat (limited to 'buildstream/_frontend/app.py')
-rw-r--r-- | buildstream/_frontend/app.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/buildstream/_frontend/app.py b/buildstream/_frontend/app.py index 1550fbcb3..1e357f123 100644 --- a/buildstream/_frontend/app.py +++ b/buildstream/_frontend/app.py @@ -198,8 +198,10 @@ class App(): option_value = self._main_options.get(cli_option) if option_value is not None: setattr(self.context, context_attr, option_value) - - Platform.create_instance(self.context) + try: + Platform.create_instance(self.context) + except BstError as e: + self._error_exit(e, "Error instantiating platform") # Create the logger right before setting the message handler self.logger = LogLine(self.context, |