]> code.ossystems Code Review - openembedded-core.git/commitdiff
Only reference logfiles that exist
authorChris Larson <chris_larson@mentor.com>
Fri, 10 Sep 2010 20:02:04 +0000 (13:02 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:36 +0000 (14:46 +0000)
(Bitbake rev: 760f647ba044009150ee219869fc9dea171a7535)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/build.py

index 7061cee20df85f3455a0faa60d79ae7545354cc0..f602e0c0ab237f00d4e0fdc800287bfa01f380a1 100644 (file)
@@ -49,7 +49,7 @@ class FuncFailed(Exception):
 
     def __str__(self):
         msg = "Function '%s' failed" % self.name
-        if self.logfile:
+        if self.logfile and os.path.exists(self.logfile):
             msg += " (see %s for further information)" % self.logfile
         return msg