Skip to content

Commit 70b31ab

Browse files
jrandalladmorgan
authored andcommitted
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.
1 parent 5a6c3c2 commit 70b31ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git-subrepo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@ usage-error() {
19681968

19691969
# Nicely report common error messages:
19701970
error() {
1971-
echo -e "git-subrepo: $1" >&2
1971+
echo -e "git-subrepo:" $@ >&2
19721972
exit 1
19731973
}
19741974

0 commit comments

Comments
 (0)