summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bblayers/action.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bblayers/action.py b/bitbake/lib/bblayers/action.py
index 5b78195ad4..f05f5d330f 100644
--- a/bitbake/lib/bblayers/action.py
+++ b/bitbake/lib/bblayers/action.py
@@ -50,10 +50,10 @@ class ActionPlugin(LayerPlugin):
50 if not (args.force or notadded): 50 if not (args.force or notadded):
51 try: 51 try:
52 self.tinfoil.run_command('parseConfiguration') 52 self.tinfoil.run_command('parseConfiguration')
53 except bb.tinfoil.TinfoilUIException: 53 except (bb.tinfoil.TinfoilUIException, bb.BBHandledException):
54 # Restore the back up copy of bblayers.conf 54 # Restore the back up copy of bblayers.conf
55 shutil.copy2(backup, bblayers_conf) 55 shutil.copy2(backup, bblayers_conf)
56 bb.fatal("Parse failure with the specified layer added") 56 bb.fatal("Parse failure with the specified layer added, aborting.")
57 else: 57 else:
58 for item in notadded: 58 for item in notadded:
59 sys.stderr.write("Specified layer %s is already in BBLAYERS\n" % item) 59 sys.stderr.write("Specified layer %s is already in BBLAYERS\n" % item)