We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cc0ac9 commit 266b01fCopy full SHA for 266b01f
1 file changed
hooks/dataform_format.sh
@@ -6,7 +6,16 @@ if ! command -v dataform >/dev/null 2>&1; then
6
exit 1
7
fi
8
9
-dataform format
+# Run Dataform formatting
10
+output=$(dataform format 2>&1)
11
+exit_code=$?
12
+
13
+if [ $exit_code -ne 0 ]; then
14
+ echo "Dataform formatting failed:"
15
+ echo "$output"
16
+ echo "Please review the formatting errors before committing."
17
+ exit 1
18
+fi
19
20
echo "Dataform formatting complete. Please review the changes before committing."
21
exit 0
0 commit comments