Skip to content

Conversation

@fliiiix
Copy link
Contributor

@fliiiix fliiiix commented Nov 7, 2025

Improve the error message when the output directory is not writable.

After:

error:
  Output path: readonly/ is not writable

Before:

error:
  Unable to generate Rust for monster

This runs only if the cpp version is 17 or higher since writing this check platform independent without std::filesystem would be a huge pain and a lot more code. Pre cpp17 versions will just fall back to the error message from before and assume the directory is always writable.

Only if compiled with cpp17
@github-actions github-actions bot added c++ codegen Involving generating code from schema labels Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant