Skip to content

Commit 6dcab95

Browse files
committed
Fix error message
1 parent 5064a12 commit 6dcab95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pdl/pdl_interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ def step_call(
14291429
result = None
14301430
background: Messages = []
14311431
args, block = process_expr_of(block, "args", scope, loc)
1432-
closure, block = process_expr_of(block, "call", scope, loc)
1432+
closure, _ = process_expr_of(block, "call", scope, loc)
14331433
args_loc = append(loc, "args")
14341434
type_errors = type_check_args(args, closure.function, args_loc)
14351435
if len(type_errors) > 0:

tests/test_line_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_line13(capsys: CaptureFixture[str]):
169169
"file": "tests/data/line/hello14.pdl",
170170
"errors": [
171171
"",
172-
"tests/data/line/hello14.pdl:25 - Type errors in result of function call to translate:",
172+
"tests/data/line/hello14.pdl:25 - Type errors in result of function call to ${ translate }:",
173173
"tests/data/line/hello14.pdl:16 - Bonjour le monde! should be of type <class 'int'>",
174174
],
175175
}

0 commit comments

Comments
 (0)