Skip to content

Commit e2f1ba0

Browse files
committed
clearer message
1 parent 32a8001 commit e2f1ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def optimize_function(self) -> Result[BestOptimization, str]: # noqa: PLR0911
169169
random.random() > REPEAT_OPTIMIZATION_PROBABILITY # noqa: S311
170170
and check_optimization_status(self.function_to_optimize, code_context)
171171
):
172-
return Failure("This function has previously been optimized, skipping.")
172+
return Failure("Function optimization previously attempted, skipping.")
173173

174174
code_print(code_context.read_writable_code)
175175
generated_test_paths = [

0 commit comments

Comments
 (0)