From 70b31ab498d6cb324867ce79378ba9206518fdc8 Mon Sep 17 00:00:00 2001 From: "Joshua C. Randall" Date: Thu, 1 Jul 2021 15:40:52 +0100 Subject: [PATCH] Update error function to allow multiple arguments Fixes #517 and other issues in which some invocations of `error()` pass multiple arguments which are then silently ignored. --- lib/git-subrepo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git-subrepo b/lib/git-subrepo index ad05e2ba..7c0e1d5b 100755 --- a/lib/git-subrepo +++ b/lib/git-subrepo @@ -1968,7 +1968,7 @@ usage-error() { # Nicely report common error messages: error() { - echo -e "git-subrepo: $1" >&2 + echo -e "git-subrepo:" $@ >&2 exit 1 }