aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-05-14 21:39:09 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-05-15 09:30:59 +0200
commit5138856a72fc009ec799cb935d9117e3bd72f16a (patch)
treefb4713ece697eebf87c57acde6c4bc50f6627471 /src/Compilation.zig
parent1bdcbd18ae1f312748c9909db98532a8dfd006eb (diff)
downloadzig-5138856a72fc009ec799cb935d9117e3bd72f16a.tar.gz
zig-5138856a72fc009ec799cb935d9117e3bd72f16a.zip
test harness: Set filename on error return
While calling `next` an error can occur while parsing the file. However, we don't set the filename that is currently being processed, until `next` completed successfully. This means that for invalid test names, the wrong filename was being displayed in the panic message. The fix is to retrieve the correct filename when an error occurs and then setting the filename appropriately.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions