From ba5915bb581667016504ea4c3199544976390455 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 21 Jun 2019 19:12:41 -0500 Subject: [PATCH] Unify error message format --- firestarter | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firestarter b/firestarter index de4018b..74b620b 100755 --- a/firestarter +++ b/firestarter @@ -285,7 +285,7 @@ step_check() { # If it's not our session then who cares [ "$_sessionid" != "$(< "/proc/$pid/sessionid")" ] && continue if [ "$pid" != "$BASHPID" ]; then - err "Firestarter is already running" 40 + err "Firestarter is already running: $pid" 40 fi done fi @@ -371,7 +371,7 @@ step_execute() { # Ensure we have a config directory if ! [ -d "$_configdir" ]; then if ! mkdir -p "$_configdir" > /dev/null 2>&1; then - err "Failed to create configuration directory \"$_configdir\"" 52 + err "Failed to create configuration directory: \"$_configdir\"" 52 fi fi # Ensure we can log if we have to @@ -379,7 +379,7 @@ step_execute() { log "No logs will be created per FS_NOLOG" elif ! [ -d "$_logdir" ]; then if ! mkdir -p "$_logdir" > /dev/null 2>&1; then - err "Failed to create log directory \"$_logdir\"" 53 + err "Failed to create log directory: \"$_logdir\"" 53 fi fi # Parse configs