Make uncrustify.sh more verbose on errors.
[alexxy/gromacs.git] / admin / uncrustify.sh
index 915c287e7315e843c78774b9076db4e0ee0dd3d0..aa6f1df3e60f7b7a9824c7f23c9a752d534d7ff3 100755 (executable)
@@ -180,8 +180,9 @@ fi
 # Run uncrustify on the temporary directory
 cd $tmpdir/org
 
-if ! $UNCRUSTIFY -c $cfg_file -F $tmpdir/filelist --prefix=../new/ -q ; then
-    echo "Reformatting failed!"
+if ! $UNCRUSTIFY -c $cfg_file -F $tmpdir/filelist --prefix=../new/ >$tmpdir/uncrustify.out 2>&1 ; then
+    echo "Reformatting failed. Check uncrustify output below for errors:"
+    cat $tmpdir/uncrustify.out
     rm -rf $tmpdir
     exit 2
 fi