chiark / gitweb /
dgit-mirror-ssh-wrap: Clarify the error message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 Jun 2020 16:03:32 +0000 (17:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 Jun 2020 18:04:08 +0000 (19:04 +0100)
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>
infra/dgit-mirror-ssh-wrap

index 3feb6dcbd9ecfbd46df893a22e77a8ff9732920e..c3d033f5862e1993c8dbd3f5a3239b2fd9aa170f 100755 (executable)
@@ -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 $!;