From 710c9966669aa781a6c388552c70561639210bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 30 Oct 2017 22:55:22 +0100 Subject: [PATCH] Add assertion message. --- 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 b804bf4..deaaef1 100644 --- a/source/vibe/core/file.d +++ b/source/vibe/core/file.d @@ -475,7 +475,7 @@ struct FileStream { void read(ubyte[] dst) { auto ret = read(dst, IOMode.all); - assert(ret == dst.length); + assert(ret == dst.length, "File.read returned less data than requested for IOMode.all."); } size_t write(in ubyte[] bytes, IOMode mode)