diff options
author | Erich Eckner <git@eckner.net> | 2019-11-19 00:29:57 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-19 00:29:57 +0100 |
commit | 7af9155b71e3bed287c2744a3cff2d795240dfb0 (patch) | |
tree | 9cb7037aa052e293e262b7d81c12a17d32095565 /lib | |
parent | e6944bee6aa16948b4b3b64b0db6e60bdbbc8ffc (diff) | |
download | builder-7af9155b71e3bed287c2744a3cff2d795240dfb0.tar.xz |
lib/common-functions: find_package_repository_to_package(): make error messages more verbose
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/common-functions | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/common-functions b/lib/common-functions index 197c16c..a684315 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -502,7 +502,10 @@ find_package_repository_to_package() { fi if [ -z "${repo}" ]; then - echo "find_package_repository_to_package(): no repo found" >&2 + >&2 printf 'find_package_repository_to_package %s %s %s: no repo found\n' \ + "${package}" \ + "${git_repository}" \ + "${git_commit}" return 1 fi @@ -510,7 +513,11 @@ find_package_repository_to_package() { echo "${repo}" | \ wc -l )" -ne 1 ]; then - echo "find_package_repository_to_package(): multiple repos found" >&2 + >&2 printf 'find_package_repository_to_package %s %s %s: multiple repos found:\n' \ + "${package}" \ + "${git_repository}" \ + "${git_commit}" + >&2 printf '%s\n' ${repo} return 1 fi |