added eval to execute settings.errorType