diff --git a/docs/_scripts/execute_notebooks.sh b/docs/_scripts/execute_notebooks.sh index 2206102e3..9d9bb516c 100755 --- a/docs/_scripts/execute_notebooks.sh +++ b/docs/_scripts/execute_notebooks.sh @@ -5,6 +5,7 @@ do echo "Executing $file" if ! output=$(poetry run jupyter execute "$file" 2>&1); then errors+=("$file: $output") # Add a tuple of the file and error message to the errors list + printf '%s\n' "${errors[@]}" exit 1 fi done