bitbake: Improve error message for missing class files
This commit is contained in:
parent
4ba6a52d7e
commit
b6b37f065c
|
@ -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) )
|
||||
|
||||
|
|
|
@ -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) )
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue