tack  onto end of error message
@@ -1767,10 +1767,13 @@ _verify_vars() {
# **Internal** Verifies that hook files do not contain invalid (CR+LF) line endings
# and fails the build if any are found.
_verify_hook_line_endings() {
- if grep --files-with-matches $'\r' "$PLAN_CONTEXT"/hooks/* 2>/dev/null; then
+ local files
+ if files=$(grep --files-with-matches $'\r' "$PLAN_CONTEXT"/hooks/* 2>/dev/null); then
local e
- e="Incorrect CR+LF line ending detected in the above file(s)."
- e="$e For the Plan to build, you must first convert these to Unix LF. https://en.wikipedia.org/wiki/Newline#Conversion_between_newline_formats"
+ e="Incorrect CR+LF line ending detected in package hook file(s)."
+ e="$e For the Plan to build, you must first convert these to Unix LF."
+ e="$e See https://en.wikipedia.org/wiki/Newline#Conversion_between_newline_formats"
+ e="$e\n$files"
exit_with "$e" 1
fi
}
