From 12a8825f866e024d768844e2f54b7a95ef5581b8 Mon Sep 17 00:00:00 2001 From: Benjamin Schaaf Date: Mon, 7 Jan 2019 10:26:16 +1100 Subject: [PATCH] Fix error message in FileStream.write --- source/vibe/core/file.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/core/file.d b/source/vibe/core/file.d index 40f14d6..83defc3 100644 --- a/source/vibe/core/file.d +++ b/source/vibe/core/file.d @@ -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]; }