Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file: fix windows error messages #235

Merged

Conversation

pablohoch
Copy link
Contributor

Error messages when trying to open files previously always returned the numeric error code.

The existing code could be fixed by passing reinterpret_cast<LPSTR>(&b.b_) instead of b.b_, but using std::system_category() seems easier and also removes the trailing newline from the error message.

@felixguendling felixguendling merged commit 56e9191 into felixguendling:master Oct 22, 2024
10 checks passed
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.

2 participants