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

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

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