aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-06-27 12:07:45 -0700
committerJunio C Hamano <gitster@pobox.com>2010-06-27 12:07:45 -0700
commit6aa206413ad7755577cfe29b8ffd16082c211a07 (patch)
treed64b2bdae283a846f3dd6ccd04ae78e2543eb034
parenta278aa61a474eced7b676f3378dcd0f4ec5db4fc (diff)
parent64abcc48447a976884e74a1efd866a21e06ddeec (diff)
downloadgit-6aa206413ad7755577cfe29b8ffd16082c211a07.tar.gz
git-6aa206413ad7755577cfe29b8ffd16082c211a07.tar.xz
Merge branch 'pb/maint-perl-errmsg-no-dir'
* pb/maint-perl-errmsg-no-dir: Git.pm: better error message
-rw-r--r--perl/Git.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/Git.pm b/perl/Git.pm
index 1926dc9a4..6cb0dd193 100644
--- a/perl/Git.pm
+++ b/perl/Git.pm
@@ -172,7 +172,7 @@ sub repository {
}
if (defined $opts{Directory}) {
- -d $opts{Directory} or throw Error::Simple("Directory not found: $!");
+ -d $opts{Directory} or throw Error::Simple("Directory not found: $opts{Directory} $!");
my $search = Git->repository(WorkingCopy => $opts{Directory});
my $dir;
@@ -545,7 +545,7 @@ sub wc_chdir {
or throw Error::Simple("bare repository");
-d $self->wc_path().'/'.$subdir
- or throw Error::Simple("subdir not found: $!");
+ or throw Error::Simple("subdir not found: $subdir $!");
# Of course we will not "hold" the subdirectory so anyone
# can delete it now and we will never know. But at least we tried.