]> git.ipfire.org Git - thirdparty/git.git/commit - perl/Git.pm
Git.pm: Better error handling
authorPetr Baudis <pasky@suse.cz>
Sat, 24 Jun 2006 02:34:42 +0000 (04:34 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 3 Jul 2006 00:14:40 +0000 (17:14 -0700)
commit97b16c067492506287a6f474e79ef6cbe0a30e49
tree4966560d51c8e23cc3c9467c322d273fae945905
parent5c4082fd687bd0784d3a4d96550e8afab332b63a
Git.pm: Better error handling

So far, errors just killed the whole program and in case of an error
inside of libgit it would be totally uncatchable. This patch makes
Git.pm throw standard Perl exceptions instead. In the future we might
subclass Error to Git::Error or something but for now Error::Simple
is more than enough.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
perl/Git.pm
perl/Git.xs