Mercurial > projects > dil
changeset 355:944a917447b4
- Improved Exception messages.
author | aziz |
---|---|
date | Sun, 26 Aug 2007 11:23:04 +0000 |
parents | b03aaa9c6bc5 |
children | 426ab95c0e73 |
files | trunk/src/dil/File.d |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/dil/File.d Sun Aug 26 10:01:04 2007 +0000 +++ b/trunk/src/dil/File.d Sun Aug 26 11:23:04 2007 +0000 @@ -64,7 +64,7 @@ ubyte[] utf16BEtoLE(ubyte[] data) { if (data.length % 2) - throw new Exception("UTF-16 big endian source file data must be divisble by 2."); + throw new Exception("UTF-16 big endian source file byte length must be divisible by 2."); wchar[] result = cast(wchar[]) new ubyte[data.length]; // BE to LE "1A 2B" -> "2B 1A" foreach (i, c; cast(wchar[]) data) @@ -75,7 +75,7 @@ ubyte[] utf32BEtoLE(ubyte[] data) { if (data.length % 4) - throw new Exception("UTF-32 big endian source file data must be divisble by 4."); + throw new Exception("UTF-32 big endian source file byte length must be divisible by 4."); dchar[] result = cast(dchar[]) new ubyte[data.length]; // BE to LE "1A 2B 3C 4D" -> "4D 3C 2B 1A" foreach (i, c; cast(dchar[]) data)