Improve error messages for parameter errors

I really don't know anything about ErrorBlock, so I haven't written a
description for that one.