Skip to content

Commit 83d7d7d

Browse files
authored
Merge pull request #212 from datacamp/fix-check-func-msg
Fix check_function messages
2 parents 5239448 + c63bb66 commit 83d7d7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pythonwhat/check_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def bind_args(signature, args_part):
2020

2121
MSG_PREPEND = "__JINJA__:Check your code in the {{child['part']+ ' of the' if child['part']}} {{typestr}}. "
2222
def check_function(name, index,
23-
missing_msg = "FMT:Did you define {typestr}?",
23+
missing_msg = "FMT:Did you define the {typestr}?",
2424
params_not_matched_msg = "FMT:Something went wrong in figuring out how you specified the "
2525
"arguments for `{name}`; have another look at your code and its output.",
2626
expand_msg = MSG_PREPEND,
2727
signature=True,
28-
typestr = "{ordinal} function call",
28+
typestr = "{ordinal} function call `{name}()`",
2929
state=None):
3030
rep = Reporter.active_reporter
3131
stu_out = state.student_function_calls

0 commit comments

Comments
 (0)