https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25245
--- Comment #19 from Marcel de Rooy <[email protected]> --- (In reply to Tomás Cohen Arazi from comment #18) > (In reply to Marcel de Rooy from comment #17) > > (In reply to Martin Renvoize from comment #15) > > > > Why do you warn $_ ? > > > > > > Following prior art. It makes sense to warn like this for such errors. I > > > have however added a Koha::Logger based log line too now so we don't lose > > > warnings for cases where cron sends them to dev/null. > > > > You probably mean something else? Like $@ ? The wonderous names of Perl > > special variables. I am really not sure what $_ would be referring to in > > this catch block? > > eval sets $@, Try::Tiny preserves it just in case you need it for other > purposes, and sets $_. So, yes: it is the correct way with Try::Tiny. Look > at all the API controllers for examples. Ah great Thanks -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
