OWASP / OWASP/Nest

Improve error handling in CalendarButton component

Open
#4,399 9 comments 0 reactions 1 assignee Claimed by @ZeydMhmd View on GitHub
bug cat-reloaded-2026 enhancement frontend good first issue
Dominant language
Python
Stars
451
Forks
702
Avg merge
22h 59m
Merged PRs (30d)
91

Description

## Description

The CalendarButton component currently uses console.error with an ESLint disable comment when handling download errors.

This approach can be improved for better code quality and maintainability.

## Proposed Improvement

- Replace console.error with console.warn
- Remove ESLint disable comment
- Add safer fallback using err?.message

## Benefits

- Cleaner logging
- Better error handling practices
- Maintains user-friendly feedback via toast notifications

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.