Make error dialog overridable