minor error message improvements
Merge pull request #3580 from WalterBright/err-msgs

minor error message improvements