fix oversized error message
Merge pull request #2257 from edisonout/error_size_fix

Fixes oversized error message