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

Fix writeFile silently continuing on errors. #674

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nh2
Copy link

@nh2 nh2 commented Jan 12, 2025

For example, if the disk is full, it would write metadata.json as an empty file, and then later fail with a JSON parse error on the same file.

Also implement good error messages using C, which <iostream> cannot do. For example, the above case would probably produce metadata.json: No space left on device.


Please check that it works well on Windows, too. I only tried it on Linux.

For example, if the disk is full, it would write `metadata.json`
as an empty file, and then later fail with a JSON parse error
on the same file.

Also implement good error messages using C, which `<iostream>` cannot do.
For example, the above case would probably produce
`metadata.json: No space left on device`.
@nh2 nh2 force-pushed the writeFile-error-handling branch from f7e9710 to 473d106 Compare January 12, 2025 19:38
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