Fix typo in error message, clean up useless tracebacks
authorBrian Dolbec <dolsen@gentoo.org>
Mon, 25 Feb 2013 03:52:44 +0000 (19:52 -0800)
committerW. Trevor King <wking@tremily.us>
Sun, 15 Dec 2013 04:25:07 +0000 (20:25 -0800)
Remove useless python tracebacks for bash side target failures.

catalyst/base/stagebase.py
catalyst/main.py
catalyst/support.py

index 5db93887898a791ef5ced461bb047c53c41fe024..317d50d086ce6d442eb863e3adf068300d59b56c 100644 (file)
@@ -1284,7 +1284,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
                        except CatalystError:
                                self.unbind()
                                raise CatalystError("Stage build aborting due to error.",
-                                       print_traceback=True)
+                                       print_traceback=False)
 
        def setup_environment(self):
                """
index 043681e56a71315489e87041a76d2ab8caa58147..08dc4505aa81cc61751fc89d7e055a96120c5776 100755 (executable)
@@ -166,9 +166,6 @@ def build_target(addlargs):
        try:
                target.run()
        except:
-               print "Target run() exception:  Python traceback output follows:"
-               catalyst.util.print_traceback()
-               print
                print "!!! catalyst: Error encountered during run of target " + \
                        addlargs["target"]
                sys.exit(1)
index b1bb4e279cb0df54532ca2a2441e713dea4f3716..3db15097ae7a2291ddbfa4bef90ea1b6f2285490 100644 (file)
@@ -91,7 +91,7 @@ class CatalystError(Exception):
                                (type,value)=sys.exc_info()[:2]
                                if value!=None:
                                        print
-                                       print "Traceback valuse found.  listing..."
+                                       print "Traceback values found.  listing..."
                                        print traceback.print_exc(file=sys.stdout)
                        print
                        print "!!! catalyst: "+message