chiark / gitweb /
dgit import: Right error message for missing files in ..
[dgit.git] / dgit
diff --git a/dgit b/dgit
index a68bf19c943502d3f039440caa29368ab2a388d9..944de8592418be52f5fae781bdf2447a4439f418 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6363,7 +6363,7 @@ END
            fail "cannot import $dscfn which seems to be inside working tree!";
        }
        $there =~ s#/+[^/]+$## or
-           fail "cannot import $dscfn which seems to not have a basename";
+           fail "import $dscfn requires ../$f, but it does not exist";
        $there .= "/$f";
        symlink $there, $here or fail "symlink $there to $here: $!";
        progress "made symlink $here -> $there";