From 103f13ac6eb2d516428da1df821ed8964a87997b Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Wed, 14 Nov 2018 17:46:40 +0800 Subject: bitbake: server/process: print a message when no logfile [YOCTO #12898] There might be no bitbake-cookerdaemon.log, print a message for debugging. (Bitbake rev: 9c3c965b9d90617e8aa2cf439019534a35a7bcb1) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- bitbake/lib/bb/server/process.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib/bb/server/process.py') diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 7cb08d5c84..6208c185ec 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py @@ -430,7 +430,11 @@ class BitBakeServer(object): bb.error("Last 10 lines of server log for this session (%s):\n%s" % (logfile, "".join(lines[-10:]))) else: bb.error("Server log for this session (%s):\n%s" % (logfile, "".join(lines))) + else: + bb.error("%s doesn't exist" % logfile) + raise SystemExit(1) + ready.close() def _startServer(self): -- cgit v1.2.3-54-g00ecf