Skip to content

Commit 457a7e7

Browse files
committed
TMP
1 parent 4b9585b commit 457a7e7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/scripts/check-ocaml-refs.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ echo "Current OCaml commit: ${CURRENT_COMMIT}"
6464
echo "Search OCaml references in Rust code with ripgrep from ${RUST_ROOT}..."
6565
cd "${RUST_ROOT}"
6666
echo "Running rg -l to find files..."
67-
rg -l "^/// OCaml reference:" --type rust
67+
OUTPUT=$(rg -l "^/// OCaml reference:" --type rust 2> /tmp/rg_error.log) || true
68+
if [ $? -ne 0 ] && [ -s /tmp/rg_error.log ];
69+
then
70+
echo "Error running ripgrep:"
71+
echo $OUTPUT
72+
cat /tmp/rg_error.log
73+
rm -f /tmp/rg_error.log
74+
exit 1
75+
fi
6876
echo "Success"
6977
RUST_FILES=$(rg -l "^/// OCaml reference:" --type rust || true)
7078
echo "${RUST_FILES}"

0 commit comments

Comments
 (0)