diff options
author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-05-15 11:43:01 -0300 |
---|---|---|
committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-05-15 11:43:01 -0300 |
commit | 6e039fc6475d1dec21f7aa280c13f1c0b071f56c (patch) | |
tree | 22ced3820ff2b0dc302856c7fcd62f079c7708df /debian/patches/0007-class-error.patch | |
parent | 677b3a938f2f714109b47880fdf364183fdb61b2 (diff) |
attached patches from Bill MacAllister
Diffstat (limited to 'debian/patches/0007-class-error.patch')
-rw-r--r-- | debian/patches/0007-class-error.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/0007-class-error.patch b/debian/patches/0007-class-error.patch new file mode 100644 index 0000000..b62009c --- /dev/null +++ b/debian/patches/0007-class-error.patch @@ -0,0 +1,30 @@ +Patch to make errors invoking a class more descriptive. The errors +only happen when there is a reference to a module that does not exist +or has not been installed. + +diff --git a/perl/lib/Wallet/Server.pm b/perl/lib/Wallet/Server.pm +index b0c955c..f4f9f81 100644 +--- a/perl/lib/Wallet/Server.pm ++++ b/perl/lib/Wallet/Server.pm +@@ -103,7 +103,7 @@ sub type_mapping { + if (defined $class) { + eval "require $class"; + if ($@) { +- $self->error ($@); ++ print ($self->error ($@)); + return; + } + } +@@ -508,10 +508,10 @@ sub checksum { + } + my $object = $self->retrieve ($type, $name); + if (!defined $object) { +- return; ++ return; + } + if (!$self->acl_verify ($object, 'get')) { +- return; ++ return; + } + my $result = $object->checksum($self->{user}, $self->{host}); + $self->error ($object->error) unless defined $result; |