Respect error level in error handler