X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=perl%2FGit.pm;h=6cb0dd19344ba1169b23b7e4949033f8a9088a00;hb=c7e375de4228cdb86e2582e2eda7fa3a6f352fc2;hp=1926dc9a4b929c025456227526a93424d4972948;hpb=799c34449e6e54c7e5fc0c623115ada4c868c64d;p=git.git 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.