Improve error messages for parameter errors

I really don't know anything about ErrorBlock, so I haven't written a
description for that one.
Merge pull request #262 from hannobraun/error-messages

Improve error messages for parameter errors