diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2021-11-19 10:39:21 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2021-11-22 12:24:14 -0800 |
| commit | ecc47d67a945760c3d5e739581fa984bfea6a840 (patch) | |
| tree | 8bf93ff2ef715e9f41d010bd77af76b7ba56eb10 /test cases | |
| parent | 1f6351461c5d3654aeff2355c96fe54bb28469f8 (diff) | |
| download | meson-ecc47d67a945760c3d5e739581fa984bfea6a840.tar.gz | |
typed_kwargs: provide better error messages for wrong container types
Currently, if you pass a `[]string`, but the argument expects
`[]number`, then you get a message like `expected list[str] but got
list`. That isn't helpful. With this patch arrays and dictionaries will
both print messages with the types provided.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/failing/116 run_target in test/test.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/failing/116 run_target in test/test.json b/test cases/failing/116 run_target in test/test.json index c273a3ba4..7826ceb38 100644 --- a/test cases/failing/116 run_target in test/test.json +++ b/test cases/failing/116 run_target in test/test.json @@ -1,7 +1,7 @@ { "stdout": [ { - "line": "test cases/failing/116 run_target in test/meson.build:4:0: ERROR: test keyword argument 'args' was of type 'list' but should have been list[str,File,BuildTarget,CustomTarget]" + "line": "test cases/failing/116 run_target in test/meson.build:4:0: ERROR: test keyword argument 'args' was of type list[RunTarget] but should have been list[str,File,BuildTarget,CustomTarget]" } ] } |
