From 072705560ee48ea1605bfaca8d8a12c35ac55d66 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 16 Jul 2025 04:43:22 +0200 Subject: [PATCH] Show actual clang-format errors in format-cpp.sh --- formatters/format-cpp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formatters/format-cpp.sh b/formatters/format-cpp.sh index 46f2f20db..e96d64207 100755 --- a/formatters/format-cpp.sh +++ b/formatters/format-cpp.sh @@ -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