This commit is contained in:
CanbiZ
2025-05-07 13:25:04 +02:00
parent 1ba68f6461
commit 3a459d9035
3 changed files with 188 additions and 184 deletions

View File

@@ -75,6 +75,7 @@ error_handler() {
local command="$2"
local error_message="${RD}[ERROR]${CL} in line ${RD}$line_number${CL}: exit code ${RD}$exit_code${CL}: while executing command ${YW}$command${CL}"
echo -e "\n$error_message\n"
[[ -n "${SPINNER_PID:-}" ]] && kill "$SPINNER_PID" &>/dev/null || true
}
# This function displays an informational message with logging support.