bitbake: Improve error message for missing class files

This commit is contained in:
Richard Purdie 2008-11-06 00:12:31 +00:00
parent 4ba6a52d7e
commit b6b37f065c
3 changed files with 3 additions and 5 deletions

View File

@ -540,8 +540,6 @@ class BBCooker:
except IOError, e:
bb.msg.fatal(bb.msg.domain.Parsing, "Error when parsing %s: %s" % (afile, str(e)))
except IOError:
bb.msg.fatal(bb.msg.domain.Parsing, "Unable to open %s" % afile )
except bb.parse.ParseError, details:
bb.msg.fatal(bb.msg.domain.Parsing, "Unable to parse %s (%s)" % (afile, details) )

View File

@ -404,8 +404,8 @@ class BBCooker:
bb.event.fire(bb.event.ConfigParsed(self.configuration.data))
except IOError:
bb.msg.fatal(bb.msg.domain.Parsing, "Unable to open %s" % afile )
except IOError, e:
bb.msg.fatal(bb.msg.domain.Parsing, "IO Error: %s" % str(e) )
except bb.parse.ParseError, details:
bb.msg.fatal(bb.msg.domain.Parsing, "Unable to parse %s (%s)" % (afile, details) )

View File

@ -116,7 +116,7 @@ def handle(fn, d, include = 0):
f = open(j, 'r')
break
if f is None:
raise IOError("file not found")
raise IOError("file %s not found" % fn)
else:
f = open(fn,'r')
abs_fn = fn