passing settings to error handler.

an error in the implementation in the error handler :D