Bug 36942

Summary: Throw an exception if a KBART file can't be read
Product: Koha Reporter: Matt Blenkinsop <matt.blenkinsop>
Component: ERMAssignee: Matt Blenkinsop <matt.blenkinsop>
Status: Needs Signoff --- QA Contact:
Severity: enhancement    
Priority: P5 - low CC: david, jonathan.druart, jonathan.field, martin.renvoize, matt.blenkinsop, pedro.amorim
Version: unspecifiedKeywords: Academy, no-sandbox
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 36831    
Bug Blocks:    
Attachments: Bug 36942: Use an exception for a failed KBART file parse

Description Matt Blenkinsop 2024-05-23 11:19:03 UTC
Currently we warn an error message if there is an error parsing a KBART file. We should change this to use an exception
Comment 1 Matt Blenkinsop 2024-07-03 11:19:38 UTC
Created attachment 168439 [details] [review]
Bug 36942: Use an exception for a failed KBART file parse

Test plan:
1) prove t/db_dependent/Koha/BackgroundJob/ImportKBARTFile.t