-
-
Notifications
You must be signed in to change notification settings - Fork 366
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug.
When generating output to a directory without write permissions (for example /root/output), the AsyncAPI Generator fails with a low-level filesystem error (EACCES). The error message is not user-friendly and does not explain how to resolve the issue, such as choosing a writable directory or adjusting directory permissions.
Expected behavior
When the output directory is not writable, the CLI should display a clear, user-friendly error message explaining that permission is denied and suggesting actionable steps, such as using a directory with write access or adjusting permissions.
Screenshots
How to Reproduce
- Prepare a valid AsyncAPI specification file (for example
asyncapi.yaml). - Run the AsyncAPI Generator with an output directory that is not writable by the current user:
asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template -o /root/output
- Observe that the command fails with a low-level permission error.
🖥️ Device Information [optional]
- Operating System (OS) Windows (WSL)
- Browser: N/A
- Browser Version: N/A
👀 Have you checked for similar open issues?
- I checked and didn't find similar issue
🏢 Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to work on this issue ?
Yes I am willing to submit a PR!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working