Fix error message in FileStream.write
This commit is contained in:
parent
e5ce1394b1
commit
12a8825f86
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ struct FileStream {
|
|||
);
|
||||
ctx.ptr += res[2];
|
||||
if (ctx.ptr > ctx.size) ctx.size = ctx.ptr;
|
||||
enforce(res[1] == IOStatus.ok, "Failed to read data from disk.");
|
||||
enforce(res[1] == IOStatus.ok, "Failed to write data to disk.");
|
||||
return res[2];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue