From 695b52c10142c8898ea525ebd8b1a1c9f30cf811 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Sun, 1 Nov 2015 11:35:07 +0100 Subject: [PATCH] error on non-existent job --- src/laminar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/laminar.cpp b/src/laminar.cpp index 4a1d57f..b8251de 100644 --- a/src/laminar.cpp +++ b/src/laminar.cpp @@ -399,8 +399,10 @@ bool Laminar::loadConfiguration() { } std::shared_ptr Laminar::queueJob(std::string name, ParamMap params) { - if(!fs::exists(fs::path(homeDir)/"cfg"/"jobs"/name)) + if(!fs::exists(fs::path(homeDir)/"cfg"/"jobs"/name)) { + KJ_LOG(ERROR, "Non-existent job", name); return nullptr; + } // attempt to create a workspace for this job if it doesn't exist if(!fs::exists(fs::path(homeDir)/"run"/name/"workspace")) {