From 0485d821f0e4ec4f13192e3de6747087ece3aae1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 22 Jun 2020 17:03:32 +0100 Subject: [PATCH] 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 --- infra/dgit-mirror-ssh-wrap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 $!; -- 2.30.2