author | Petr Baudis <pasky@suse.cz> | |
Sat, 24 Jun 2006 02:34:42 +0000 (04:34 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 3 Jul 2006 00:14:40 +0000 (17:14 -0700) | ||
commit | 97b16c067492506287a6f474e79ef6cbe0a30e49 | |
tree | 4966560d51c8e23cc3c9467c322d273fae945905 | tree | snapshot |
parent | 5c4082fd687bd0784d3a4d96550e8afab332b63a | commit | diff |
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>
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 | diff | blob | history | |
perl/Git.xs | diff | blob | history |