diff options
| author | liang-kai-shui <1677378668@qq.com> | 2026-11-22 18:39:09 +0800 |
|---|---|---|
| committer | liang-kai-shui <1677378668@qq.com> | 2026-11-22 18:39:09 +0800 |
| commit | 62495a34cdfc583f6045085c6c9bd3fe1897858a (patch) | |
| tree | 8fe9a1683c82525f09f1c50dc5c0a18869aef8e9 /runtime/src/thread_stacks.cpp | |
| parent | f85582e23d4ab9e19acbf694358f137d6b8531b1 (diff) | |
gamedata_maps: a wrong-typed index "files" is an error, not a traceback
read_payloads() raises TypeError when the carve index's "files" is a
string or null, and main()'s except tuple caught only OSError, ValueError,
KeyError and struct.error. Add TypeError so those shapes print the tool's
one-line error and exit 1 instead of a traceback.
New tests/test_gamedata_maps_bad_index.py covers five malformed index
shapes plus a valid empty carve; main's tool fails the two TypeError
cases as the negative control.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions