Skip to content

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