From 546364c9567ef212ea9276201facf73f5ada696a Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 19 Nov 2004 00:09:58 +0000 Subject: [PATCH] improve exception feedback a bit SVN-Revision: 2108 --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index d4ddd385b..d071c5c0c 100644 --- a/SConstruct +++ b/SConstruct @@ -10,8 +10,8 @@ def Glob(dirs, pattern = '*' ): for file in os.listdir( Dir(dir).srcnode().abspath ): if fnmatch.fnmatch(file, pattern) : files.append( os.path.join( dir, file ) ) - except: - print "Warning, couldn't find directory " + dir + except Exception, e: + print "Warning, couldn't find directory '%s': %s" % (dir, str(e)) return files -- 2.11.0