https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40445
--- Comment #33 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 189362 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189362&action=edit Bug 40445: Add detailed error handling for cashup completion failures The cashup completion process in pos/register.pl was providing only a generic "Failed to complete cashup" message for all errors, making it difficult to diagnose issues during development and production use. This patch enhances error handling by: 1. Adding specific error messages for MissingParameter exceptions (displays the actual missing parameter name) 2. Adding specific error messages for AmountNotPositive exceptions (clarifies that amount must be positive and non-zero) 3. Displaying detailed error information for unhandled exceptions in the generic error case (aids debugging) These improvements provide clearer feedback to users and make it easier to troubleshoot cashup failures in both two-phase and legacy workflows. Test plan: 1. Attempt cashup operations that trigger various exceptions 2. Verify each exception type shows an appropriate, specific error message 3. Confirm the error details help identify the root cause -- 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/
