From: Ian Jackson Date: Wed, 28 Sep 2016 23:33:43 +0000 (+0100) Subject: New import: Slightly better message in mktree_in_ud_from_only_subdir X-Git-Tag: archive/debian/2.0~100 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=10080371e34afdc4fe50cdf8de0e3d52bfab4f6e 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 --- 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;