Skip to content

Commit 4c855e7

Browse files
committed
backward compat
1 parent 0ebd017 commit 4c855e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eval_protocol/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ def rollout_internal_error(cls, error_message: str, extra_info: Optional[Dict[st
312312
"""Create a status indicating the rollout failed with an internal error."""
313313
return cls.internal_error(error_message, cls._build_details_with_extra_info(extra_info))
314314

315+
# For backwards compatibility
316+
@classmethod
317+
def rollout_error(cls, error_message: str, extra_info: Optional[Dict[str, Any]] = None) -> "Status":
318+
"""Create a status indicating the rollout failed with an error."""
319+
return cls.internal_error(error_message, cls._build_details_with_extra_info(extra_info))
320+
315321
@classmethod
316322
def internal_error(cls, error_message: str, details: Optional[List[Dict[str, Any]]] = None) -> "Status":
317323
"""Create a status indicating an internal error occurred."""

0 commit comments

Comments
 (0)