| Git::Error - Wrapper for the L<Error> module, in case it's not installed |
| Wraps the import function for the L<Error> module. |
| This module is only intended to be used for code shipping in the |
| C<git.git> repository. Use it for anything else at your peril! |
| my $error = $@ || "Zombie Error"; |
| my $Git_Error_pm_path = $INC{"Git/Error.pm"} || die "BUG: Should have our own path from %INC!"; |
| my $Git_Error_pm_root = File::Basename::dirname($Git_Error_pm_path) || die "BUG: Can't figure out lib/Git dirname from '$Git_Error_pm_path'!"; |
| my $Git_pm_FromCPAN_root = File::Spec->catdir($Git_Error_pm_root, 'FromCPAN'); |
| die "BUG: '$Git_pm_FromCPAN_root' should be a directory!" unless -d $Git_pm_FromCPAN_root; |
| local @INC = ($Git_pm_FromCPAN_root, @INC); |
| local @_ = ($caller, @_); |