Commit 3281c4cf authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Enhance error reporting of cargofmt pre-commit hook (code formatting)

parent 0f78b669
Pipeline #1092 passed with stages
in 22 minutes and 9 seconds
cargo +nightly fmt -- --check
if test $status -ne 0
echo "\033[1;31m"
echo " =============================================="
echo " | Error: Code not properly formatted |"
echo " | Commit not successfull |"
echo " =============================================="
echo "\033[0m"
exit $status
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