Skip to content

Commit

Permalink
feat: Redirect failure notice to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
jidicula committed Jul 25, 2022
1 parent 8f76e7d commit 1eb2700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ format_diff() {

local format_status="$?"
if [[ ${format_status} -ne 0 ]]; then
echo "Failed on file: $filepath"
echo "Failed on file: $filepath" >&2
echo "$local_format" >&2
exit_code=1
return "${format_status}"
Expand All @@ -50,7 +50,7 @@ fi
cd "$GITHUB_WORKSPACE" || exit 2

if [[ ! -d $CHECK_PATH ]]; then
echo "Not a directory in the workspace, fallback to all files."
echo "Not a directory in the workspace, fallback to all files." >&2
CHECK_PATH="."
fi

Expand Down

0 comments on commit 1eb2700

Please sign in to comment.