Improve error messages across pipeline stages for better debugging#95
Open
JahnaviSingh2005 wants to merge 1 commit intoeellak:developmentfrom
Open
Improve error messages across pipeline stages for better debugging#95JahnaviSingh2005 wants to merge 1 commit intoeellak:developmentfrom
JahnaviSingh2005 wants to merge 1 commit intoeellak:developmentfrom
Conversation
Author
Impact
Scope
Additional NotesBest practices for logging and exception handling are documented in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR improves error handling and debugging across all major pipeline stages by introducing clear, stage-specific error messages.
Changes
Enhanced error messages in the following modules:
phase_download.py→ Added [Download Phase] context to parquet discovery and checkpoint handlingphase_extract.py→ Added [Extract Phase] context to configuration and initialization errorsphase_clean.py→ Added [Clean Phase] context to Rust extension loading and cleaning failuresphase_ocr_math.py→ Added [OCR Phase] and [Math Phase] context to backend validation and runtime errorsphase_sections.py→ Added [Section Phase] context to metadata updates and input validationStandardized Error Format
All error messages now follow a consistent format: