Shift config errors in templates to the client.

Closes #302