made error massage more meaningful and added bitWidth and byteSize

please comment
Why did you switched the condition around ?