From 853882e3805e31de0e732b5467cd6d8a76bb2a86 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Fri, 23 Dec 2005 02:46:03 +0000 Subject: Generalize portage_util.dump_traceback() and make use of it if importing a cache module fails. svn path=/main/trunk/; revision=2439 --- pym/portage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage.py') diff --git a/pym/portage.py b/pym/portage.py index 536795ecc..851dab39c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1284,7 +1284,7 @@ class config: try: mod = load_mod(best_mod) except: - writemsg(red("!!! Failed to import module '%s'\n") % best_mod) + dump_traceback(red("Error: Failed to import module '%s'") % best_mod, noiselevel=0) sys.exit(1) return mod @@ -2426,7 +2426,7 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea global db, actionmap_deps if not tree: - dump_traceback("tree not specified to doebuild") + dump_traceback("Warning: tree not specified to doebuild") tree = "porttree" ebuild_path = os.path.abspath(myebuild) -- cgit v1.2.3-1-g7c22