Fix a couple of errors introduced by using config.error everywhere.