use the same error message
Merge pull request #1914 from stomar/struct-emsg

use the same error message