From 10080371e34afdc4fe50cdf8de0e3d52bfab4f6e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 29 Sep 2016 00:33:43 +0100 Subject: [PATCH] New import: Slightly better message in mktree_in_ud_from_only_subdir This is going to be processing .dsc's tarballs directly, so we need slightly better error reporting. Signed-off-by: Ian Jackson --- dgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dgit b/dgit index b1883614..39231bbe 100755 --- a/dgit +++ b/dgit @@ -1379,7 +1379,7 @@ sub mktree_in_ud_from_only_subdir (;$) { # changes into the subdir my (@dirs) = <*/.>; - die "@dirs ?" unless @dirs==1; + die "expected one subdir but found @dirs ?" unless @dirs==1; $dirs[0] =~ m#^([^/]+)/\.$# or die; my $dir = $1; changedir $dir; -- 2.30.2