Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions codeflash/errors/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
from codeflash.code_utils.compat import LF
from codeflash.either import CodeflashError

_BEHAVIORAL_TEST_FAILURE_ERROR = CodeflashError(
"BEHAVIORAL_TEST_FAILURE_ERROR", "Failed to establish a baseline for the original code - bevhavioral tests failed."
)


def shell_rc_permission_error(shell_rc_path: str, api_key_line: str) -> CodeflashError:
return CodeflashError(
Expand Down Expand Up @@ -74,7 +78,4 @@ def test_confidence_threshold_not_met_error() -> CodeflashError:


def behavioral_test_failure_error() -> CodeflashError:
return CodeflashError(
"BEHAVIORAL_TEST_FAILURE_ERROR",
"Failed to establish a baseline for the original code - behavioral tests failed.",
)
return _BEHAVIORAL_TEST_FAILURE_ERROR
Loading