ErrorHandler::register() simplification