cartesi / machine-emulator

The off-chain implementation of the Cartesi Machine
GNU Lesser General Public License v3.0
58 stars 32 forks source link

fix: show system error when mkdir fails #255

Closed edubart closed 3 days ago

edubart commented 3 days ago

We had a problem in production inside a cloud where saving snapshot failed due to mkdir failing, I think the disk was corrupt or something, we couldn't know the reason because mkdir is not showing the failure reason and we could not reproduce again. This PR improves the mkdir error with more context, so when it happens again we will know the reason.