Skip to content

Commit

Permalink
SQUASHME: Improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Feb 6, 2024
1 parent 9d8aa6a commit 1679369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build-helpers/package-version
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ test -f "$top_srcdir/../CMakeLists.txt" || { \
if PROJECT_VERSION="$(${SED-sed} -n 's/project(avrdude[[:space:]]\{1,\}VERSION[[:space:]]\{1,\}\([0-9\.]\{1,\}\)[[:space:]]\{1,\}.*/\1/p' "$top_srcdir/../CMakeLists.txt")"; then
:
else
echo "$prog: Error: Could not parse top-level avrdude 'CMakeLists.txt'." >&2
echo "$prog: Error parsing top-level avrdude 'CMakeLists.txt'." >&2
echo "version_error_4" | ${TR-tr} -d '\012'
exit 2
fi

test -n "$PROJECT_VERSION" || { \
echo "$prog: Error: Could not parse top-level avrdude 'CMakeLists.txt' project(...) line" >&2; \
echo "$prog: Error: Could not find project(...) in top-level avrdude 'CMakeLists.txt'" >&2; \
echo "version_error_5" | ${TR-tr} -d '\012'
exit 2; \
}
Expand Down

0 comments on commit 1679369

Please sign in to comment.