File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -614,8 +614,12 @@ def process_advance_block_retry( # noqa: C901
614614 if do_retry :
615615 err_msg = traceback .format_exc ()
616616 error = f"An error occurred in a PDL block. Error details: { err_msg } "
617+ if loc is None :
618+ message = error
619+ else :
620+ message = get_loc_string (loc ) + error
617621 print (
618- f"\n \033 [0;31m[Retry { trial_idx + 1 } /{ max_retry } ] { error } \033 [0m\n " ,
622+ f"\n \033 [0;31m[Retry { trial_idx + 1 } /{ max_retry } ] { message } \033 [0m\n " ,
619623 file = sys .stderr ,
620624 )
621625 if block .trace_error_on_retry :
Original file line number Diff line number Diff line change 8080 retry: 3
8181 fallback:
8282 lang: python
83- code:
84- raise Exception("Llm-as-judge failed!")
83+ code: |
84+ raise Exception(f "Llm-as-judge failed!\n judge prompt: {prompt} ")
8585
8686 get_judge_prompt:
8787 function:
You can’t perform that action at this time.
0 commit comments