Commit bc5a66f9 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Color coding (#4687)

parent cd89e867
......@@ -8,9 +8,9 @@ detect_error_on_exit() {
exit_code=$?
set +x
if [[ $exit_code -ne 0 ]]; then
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Error: script exited early due to error ($exit_code)"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo -e "\x1B[31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo -e "\x1B[1mError:\x1B[0m\x1B[31m script exited early due to error ($exit_code)"
echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1B[0m"
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment