Skip to content

Commit

Permalink
capture error
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRobin committed Jun 6, 2024
1 parent 823655a commit de4d3de
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 84 deletions.
20 changes: 0 additions & 20 deletions daily_spellbook/tests/generic/check_seed.sql

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions daily_spellbook/tests/generic/equal_rowcount_with_sources.sql

This file was deleted.

13 changes: 0 additions & 13 deletions daily_spellbook/tests/generic/is_unique_filtered.sql

This file was deleted.

6 changes: 4 additions & 2 deletions scripts/check_schema.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Run the dbt command and capture its output
test=$(dbt --quiet --no-print ls $PROFILE --resource-type model --select state:modified,config.schema:no_schema --output path --state . --project-dir $PROJECT_DIR)
# Run the dbt command and capture its output and error
test=$(dbt --quiet --no-print ls $PROFILE --resource-type model --select state:modified,config.schema:no_schema --output path --state . --project-dir $PROJECT_DIR 2>error_output.txt)
dbt_exit_status=$?

# Check if the dbt command failed
if [[ $dbt_exit_status -ne 0 ]]; then
echo "Error: dbt command failed with exit status $dbt_exit_status"
echo "dbt error output:"
cat error_output.txt
exit $dbt_exit_status
fi

Expand Down

0 comments on commit de4d3de

Please sign in to comment.