mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-08 16:24:53 +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
|
||||
|
||||
# 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"
|
||||
errors=$((errors + 1))
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user