summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2020-06-22 17:03:32 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2020-06-22 19:04:08 +0100
commit0485d821f0e4ec4f13192e3de6747087ece3aae1 (patch)
tree4f6fe61df530ffba7e5238193a662826abfdce0d
parent2b693260e2b5d6aedd994e934e5a5c07b72fd655 (diff)
dgit-mirror-ssh-wrap: Clarify the error message
When we get an unexpected command, it would be nice to say who is reporting this problem and what has probably happened. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xinfra/dgit-mirror-ssh-wrap3
1 files changed, 2 insertions, 1 deletions
diff --git a/infra/dgit-mirror-ssh-wrap b/infra/dgit-mirror-ssh-wrap
index 3feb6dc..c3d033f 100755
--- a/infra/dgit-mirror-ssh-wrap
+++ b/infra/dgit-mirror-ssh-wrap
@@ -32,6 +32,7 @@ m{^rsync --server -lHtre\.iLsfxC --timeout=\d+ --delete --safe-links \. $d$}
# The pattern should contain $d where the per-package destination
# directory would go.
-or die "unexpected command $command\n";
+or die "dgit-mirror-ssh-wrap: unexpected command (rsync upgraded?):
+ $command\n";
exec $& or die $!;