Pass options to error handler