From: Ian Jackson Date: Mon, 22 Jun 2020 16:03:32 +0000 (+0100) Subject: dgit-mirror-ssh-wrap: Clarify the error message X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=0485d821f0e4ec4f13192e3de6747087ece3aae1 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 --- diff --git a/infra/dgit-mirror-ssh-wrap b/infra/dgit-mirror-ssh-wrap index 3feb6dcb..c3d033f5 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 $!;