From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B60B91387FD for ; Wed, 2 Apr 2014 20:30:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1460CE0E4A; Wed, 2 Apr 2014 20:30:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7BAE7E0E47 for ; Wed, 2 Apr 2014 20:30:12 +0000 (UTC) Received: from big_daddy.dol-sen.ca (S010600222de111ff.vc.shawcable.net [96.49.5.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: dolsen) by smtp.gentoo.org (Postfix) with ESMTPSA id 92A1133FA83 for ; Wed, 2 Apr 2014 20:30:11 +0000 (UTC) From: Brian Dolbec To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 3/8] main.py: print the output of an ImportError to help in debugging. Date: Wed, 2 Apr 2014 13:29:38 -0700 Message-Id: <1396470583-8756-3-git-send-email-dolsen@gentoo.org> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1396470583-8756-2-git-send-email-dolsen@gentoo.org> References: <1396470583-8756-2-git-send-email-dolsen@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: a6a61718-8f76-49b7-955b-1fadb4d0bdcf X-Archives-Hash: abf6b94d0dfe8b97220a5391baac5914 --- catalyst/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catalyst/main.py b/catalyst/main.py index 4146bca..bba3cba 100644 --- a/catalyst/main.py +++ b/catalyst/main.py @@ -227,9 +227,10 @@ def import_modules(): raise CatalystError,"Can't find " + x + ".py plugin in " + \ module_dir - except ImportError: + except ImportError as e: print "!!! catalyst: Python modules not found in "+\ module_dir + "; exiting." + print e sys.exit(1) return targetmap -- 1.8.5.3