diff options
-rwxr-xr-x | rtt-module.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rtt-module.js b/rtt-module.js index 6ff8dfd..ceb795d 100755 --- a/rtt-module.js +++ b/rtt-module.js @@ -46,7 +46,13 @@ module.exports.fuzz = function(fuzzerInputData) { active = data.pickValue(RULES.roles) } - let view = RULES.view(state, active) + let view = {} + try { + view = RULES.view(state, active) + } catch (e) { + log_crash(game_setup, state, view, step, active) + throw new RulesCrashError(e, e.stack) + } if (step > MAX_STEPS) { log_crash(game_setup, state, view, step, active) |