@@ -221,7 +221,7 @@ def set_context(*args, state=None, **kwargs):
221221 student_context = out_stu , solution_context = out_sol )
222222
223223
224- def check_arg (name , missing_msg = 'check the argument `{part}`, ' , state = None ):
224+ def check_arg (name , missing_msg = 'FMT: check the argument `{part}`, ' , state = None ):
225225 if name in ['*args' , '**kwargs' ]:
226226 return check_part (name , name , state = state , missing_msg = missing_msg )
227227 else :
@@ -299,12 +299,12 @@ def call(args,
299299 eval_sol , str_sol = run_call (args , state .solution_parts ['node' ], state .solution_process , get_func , ** kwargs )
300300
301301 if (test == 'error' ) ^ isinstance (str_sol , Exception ):
302- _msg = state .build_message ("Calling for arguments {args} resulted in an error (or not an error if testing for one)." ,
302+ _msg = state .build_message ("FMT: Calling for arguments {args} resulted in an error (or not an error if testing for one)." ,
303303 dict (args = args ))
304304 raise ValueError (_msg )
305305
306306 if isinstance (eval_sol , ReprFail ):
307- _msg = state .build_message ("Can't get the result of calling it for arguments {args}: {eval_sol.info}" ,
307+ _msg = state .build_message ("FMT: Can't get the result of calling it for arguments {args}: {eval_sol.info}" ,
308308 dict (args = args , eval_sol = eval_sol ))
309309 raise ValueError (_msg )
310310
@@ -328,7 +328,7 @@ def call(args,
328328from pythonwhat .tasks import ReprFail , UndefinedValue
329329from pythonwhat .Test import EqualTest
330330from pythonwhat import utils
331- def has_expr (incorrect_msg = "Unexpected expression {test}: expected `{sol_eval}`, got `{stu_eval}` with values{extra_env}." ,
331+ def has_expr (incorrect_msg = "FMT: Unexpected expression {test}: expected `{sol_eval}`, got `{stu_eval}` with values{extra_env}." ,
332332 error_msg = "Running an expression in the student process caused an issue" ,
333333 undefined_msg = "FMT:Have you defined `{name}` without errors?" ,
334334 extra_env = None ,
0 commit comments