Skip to content

Commit

Permalink
Use say_err
Browse files Browse the repository at this point in the history
We have an error function, use it.

This clears a shellcheck warning (unseen locally by myself) and puts the
error message below the ouput from `cargo tree` which is probably better
if its long.
  • Loading branch information
tcharding committed Aug 21, 2024
1 parent b249949 commit 0dbcc8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ci/run_task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,8 @@ do_dup_deps() {
duplicate_dependencies=$(eval "$tree_cmd")

if [ "$duplicate_dependencies" -ne 0 ]; then
echo "Dependency tree is broken, contains duplicates"
cargo tree --target=all --all-features --duplicates
exit 1
say_err "Dependency tree is broken, contains duplicates"
fi

set -o pipefail
Expand Down

0 comments on commit 0dbcc8b

Please sign in to comment.