Skip to content

Commit

Permalink
Emit a better message to tell what to do about the error.
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Jun 14, 2021
1 parent c79cdaf commit a389fa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1455,11 +1455,12 @@ dist_checks() {
run_verbose_errexit $CABALCMD v2-sdist $CABAL_BUILD_TARGETS $SDIST_OPTIONS

echo
if test "$CABAL_CHECK_RELAX" = y
if test -n "$CABAL_CHECK_RELAX"
then
run_verbose cabal check || true
else
run_verbose_errexit cabal check
run_verbose cabal check || \
die "Use CABAL_CHECK_RELAX=y to ignore this error"
fi ;;
esac
}
Expand Down

0 comments on commit a389fa5

Please sign in to comment.