diff options
-rw-r--r-- | bbot/worker/worker.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index cf6751b..beb57ba 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -504,7 +504,14 @@ build (size_t argc, const char* argv[]) // Noop, just for the log record. // - change_wd (trace, &r.log, dir_path::current_directory ()); + try + { + change_wd (trace, &r.log, dir_path::current_directory ()); + } + catch (const system_error& e) + { + fail << "unable to obtain current directory: " << e; + } // bpkg create <env-modules> <config-args> <env-config-args> // |