From 54d16a576697bdff295c593f57de1d30abdb30a2 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Wed, 22 Apr 2009 17:39:05 +0200 Subject: [PATCH] fix error message when trying to enter a non-existent playground Signed-off-by: Gordon Hecker --- local/playground.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/local/playground.lua b/local/playground.lua index 9f1e2b1..f55fb37 100644 --- a/local/playground.lua +++ b/local/playground.lua @@ -75,6 +75,9 @@ rc, re = e2build.build_config(info, r, {}) if not rc then e2lib.abort(e:cat(re)) end +if not e2build.chroot_exists(info, r) then + e2lib.abort("playground does not exist") +end if opts.showpath then print(info.results[r].build_config.c) e2lib.finish(0) -- 2.39.5