Switch a fatal usage to SystemExit ("T" not set)
This failure is one the *user* needs to see, as it may have to do with their setup, but where they don't need to see a traceback and all, since they're not developers, so I think SystemExit is appropriate here. (Bitbake rev: e3cc9bc7b6ef1a2eca78235790a051329bceb9a4) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
ce42c24d70
commit
6be4fa575a
|
@ -125,7 +125,7 @@ def exec_func(func, d, dirs = None):
|
||||||
# Setup logfiles
|
# Setup logfiles
|
||||||
t = data.getVar('T', d, 1)
|
t = data.getVar('T', d, 1)
|
||||||
if not t:
|
if not t:
|
||||||
bb.msg.fatal(bb.msg.domain.Build, "T not set")
|
raise SystemExit("T variable not set, unable to build")
|
||||||
bb.utils.mkdirhier(t)
|
bb.utils.mkdirhier(t)
|
||||||
logfile = "%s/log.%s.%s" % (t, func, str(os.getpid()))
|
logfile = "%s/log.%s.%s" % (t, func, str(os.getpid()))
|
||||||
runfile = "%s/run.%s.%s" % (t, func, str(os.getpid()))
|
runfile = "%s/run.%s.%s" % (t, func, str(os.getpid()))
|
||||||
|
|
Loading…
Reference in New Issue