diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-10 09:14:39 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:36 +0100 |
commit | 6be4fa575a36c6c1cd3cb933fafd51dd3bd90c71 (patch) | |
tree | 2fd64fbda871dbb081980c3c840b1320af0ecd05 /bitbake/lib | |
parent | ce42c24d700e6f61dc51942631587d8ae07b12ea (diff) | |
download | openembedded-core-6be4fa575a36c6c1cd3cb933fafd51dd3bd90c71.tar.gz openembedded-core-6be4fa575a36c6c1cd3cb933fafd51dd3bd90c71.tar.bz2 openembedded-core-6be4fa575a36c6c1cd3cb933fafd51dd3bd90c71.tar.xz openembedded-core-6be4fa575a36c6c1cd3cb933fafd51dd3bd90c71.zip |
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index c6d406057..1f4107fb6 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -125,7 +125,7 @@ def exec_func(func, d, dirs = None): # Setup logfiles t = data.getVar('T', d, 1) 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) logfile = "%s/log.%s.%s" % (t, func, str(os.getpid())) runfile = "%s/run.%s.%s" % (t, func, str(os.getpid())) |