From a4b947e028e97c9750485795fc0a98309e8f6d6d Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 10 Jun 2008 09:45:30 +0000 Subject: [PATCH] more explicit error messages --- module-tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module-tools.py b/module-tools.py index 2cadc2ba..ef422d42 100755 --- a/module-tools.py +++ b/module-tools.py @@ -73,7 +73,7 @@ class Command: sys.stdout.flush() retcod=os.system(self.command + " &> " + self.tmp) if retcod != 0: - print "FAILED ! -- output quoted below " + print "FAILED ! -- out+err below (command was %s)"%self.command os.system("cat " + self.tmp) print "FAILED ! -- end of quoted output" elif self.options.verbose: @@ -956,7 +956,7 @@ More help: try: method(module) except Exception,e: - print 'Skipping failed %s - %r'%(modname,e) + print 'Skipping failed %s: '%modname,e if __name__ == "__main__" : try: -- 2.43.0