https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38115
Martin Renvoize (ashimema) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #186857|0 |1 is obsolete| | --- Comment #11 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 188092 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188092&action=edit Bug 38115: (follow-up) Improve error handling and connection management Enhance the export_records.pl script with better error handling and connection lifecycle management: 1. Connection Management: - Always call disconnect() after file transport operations - Ensure connections are cleaned up even on errors 2. Error Handling: - Replace unusual die+pod2usage with clear error messages - Add file existence validation before upload attempts - Provide detailed error messages with context - Consistent error message formatting 3. User Experience: - Add validation for --delete_local_after_run without --destination_server_id - Provide informative success messages to STDERR - Better error messages with specific failure reasons 4. Robustness: - Check if output file was created before upload - Check if file exists before attempting deletion - Graceful handling of missing upload directories These improvements make the script more reliable and user-friendly while maintaining all existing functionality. -- 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/
