Skip to content

improve error handling in DeckService for missing markdown files#2751

Open
theanand108 wants to merge 3 commits intoOWASP:masterfrom
theanand108:patch-1
Open

improve error handling in DeckService for missing markdown files#2751
theanand108 wants to merge 3 commits intoOWASP:masterfrom
theanand108:patch-1

Conversation

@theanand108
Copy link
Copy Markdown
Contributor

Improves error handling in DeckService when markdown files such as technical-note.md and explanation.md are missing.

The current error messages are generic and do not provide enough context to identify which card or file caused the issue.

Changes include:

Adding card ID and file path to error messages for better traceability
Adding a warning when the main card YAML file is not found

This improves debugging and maintainability, especially when working with new or incomplete datasets such as EoP integration.

Resolved or fixed issue: #2747

AI Tool Disclosure
My contribution includes AI-generated content, as disclosed below:
AI Tools: ChatGPT
LLMs and versions: GPT-5.3
Prompts: Guidance on improving error handling and structuring logging messages in DeckService

Affirmation
My code follows the CONTRIBUTING.md
guidelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant