mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Show actual clang-format errors in format-cpp.sh
This commit is contained in:
parent
aaaa3f8f35
commit
072705560e
@ -99,7 +99,7 @@ for file in "${files[@]}"; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Format the file and capture any errors
|
# Format the file and capture any errors
|
||||||
if ! clang-format -i -style=file:".clang-format" "$file" 2>/dev/null; then
|
if ! clang-format -i -style=file:".clang-format" "$file" 2>&1; then
|
||||||
printf "\nError formatting: $file\n"
|
printf "\nError formatting: $file\n"
|
||||||
errors=$((errors + 1))
|
errors=$((errors + 1))
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user