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)
committerBrian Dolbec <dolsen@gentoo.org>
Mon, 4 Mar 2013 04:44:22 +0000 (20:44 -0800)
Remove useless python tracebacks for bash side target failures.

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

index d3f132335296a3964d13aed9476bf24cb5a9b997..0e717bf57b3f51c1178a30ed55573eee97444bf4 100644 (file)
@@ -1280,7 +1280,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 6d544be517701b890810bbe50323d125fbafc8ba..05904ecb0801353bad37e27986b52c262fec517d 100644 (file)
@@ -168,9 +168,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