[PATCH 2/2] Don't silently drop exception during init.

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Apr 6 11:19:16 UTC 2018


---
 rtems.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rtems.py b/rtems.py
index f974e25..af17dbd 100644
--- a/rtems.py
+++ b/rtems.py
@@ -139,8 +139,8 @@ def init(ctx, filters = None, version = None, long_commands = False, bsp_init =
 
         if bsp_init:
             bsp_init(ctx, env, contexts)
-    except:
-        pass
+    except Exception as e:
+        ctx.fatal("Exception occurred during init: " + str(e))
 
 def configure(conf, bsp_configure = None):
     #
-- 
2.13.6




More information about the devel mailing list