chiark / gitweb /
New import: Slightly better message in mktree_in_ud_from_only_subdir
[dgit.git] / dgit
diff --git a/dgit b/dgit
index b1883614adfb61cb049d172302bd7ef254aa55e0..39231bbea6b0404b991d10e7594f27fc82210adc 100755 (executable)
--- 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;