From dd692a7f32c0e3c2fa37cd0949dff3f276ae7a97 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Wed, 25 Dec 2019 07:42:28 +0000 Subject: [PATCH] Fix error messages from proc_service launch stages --- src/proc-service.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proc-service.cc b/src/proc-service.cc index 9bdc2b3..c761140 100644 --- a/src/proc-service.cc +++ b/src/proc-service.cc @@ -241,7 +241,7 @@ void process_service::handle_exit_status(bp_sys::exit_status exit_status) noexce void process_service::exec_failed(run_proc_err errcode) noexcept { log(loglevel_t::ERROR, get_name(), ": execution failed - ", - exec_stage_descriptions[static_cast(errcode.stage)], strerror(errcode.st_errno)); + exec_stage_descriptions[static_cast(errcode.stage)], ": ", strerror(errcode.st_errno)); if (notification_fd != -1) { readiness_watcher.deregister(event_loop); @@ -361,7 +361,7 @@ void bgproc_service::handle_exit_status(bp_sys::exit_status exit_status) noexcep void bgproc_service::exec_failed(run_proc_err errcode) noexcept { log(loglevel_t::ERROR, get_name(), ": execution failed - ", - exec_stage_descriptions[static_cast(errcode.stage)], strerror(errcode.st_errno)); + exec_stage_descriptions[static_cast(errcode.stage)], ": ", strerror(errcode.st_errno)); // Only time we execute is for startup: stop_reason = stopped_reason_t::EXECFAILED; @@ -455,7 +455,7 @@ void scripted_service::handle_exit_status(bp_sys::exit_status exit_status) noexc void scripted_service::exec_failed(run_proc_err errcode) noexcept { log(loglevel_t::ERROR, get_name(), ": execution failed - ", - exec_stage_descriptions[static_cast(errcode.stage)], strerror(errcode.st_errno)); + exec_stage_descriptions[static_cast(errcode.stage)], ": ", strerror(errcode.st_errno)); auto service_state = get_state(); if (service_state == service_state_t::STARTING) { stop_reason = stopped_reason_t::EXECFAILED; -- 2.25.1