Add parameters to error messages

This is crucial for figuring out some syntex issues.