Bug 36170: Wrong error variable in memberentry
It is hidding an important error. $@ is never set here, we need $_ (inside a try-catch) Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
bcfc786f17
commit
cd9de702e2
|
|
@ -430,7 +430,7 @@ if ((!$nok) and $nodouble and ($op eq 'cud-insert' or $op eq 'cud-save')){
|
|||
} else {
|
||||
# FIXME Urgent error handling here, we cannot fail without relevant feedback
|
||||
# Lot of code will need to be removed from this script to handle exceptions raised by Koha::Patron->store
|
||||
warn "Patron creation failed! - $@"; # Maybe we must die instead of just warn
|
||||
warn "Patron creation failed! - $_"; # Maybe we must die instead of just warn
|
||||
push @messages, {error => 'error_on_insert_patron'};
|
||||
}
|
||||
$op = "add_form";
|
||||
|
|
|
|||
Loading…
Reference in New Issue