Ticket #811 (closed task: fixed)
Unhelpful error message when unable to write file
|Reported by:||Philip||Owned by:|
|Priority:||Should Have||Milestone:||Alpha 5|
When the game is unable to write a file (in particular when it's trying to create a cache file when it doesn't have write permission to the directory), it gives an error like
io.h(73): Assertion failed: "fd >= 0" Assertion failed: "fd >= 0" Location: io.h:73 (Validate) ... errno = 0 (?) OS error = ?
(via io::Store -> io::Run -> io::Operation::Validate) which is very uninformative. In contrast, if CreateDirectories fails due to permission problems, it says "Function call failed: return value was -110300 (Insufficient access rights to open file)" - it should do something similar when failing to create files.