Skip to content

Commit

Permalink
Add recoverable error dump
Browse files Browse the repository at this point in the history
  • Loading branch information
NympheaR authored Apr 10, 2024
1 parent 1dfd53a commit 0842a85
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ void ShinyHuntScatterbug::program(SingleSwitchProgramEnvironment& env, BotBaseCo
reset_game(env.program_info(), env.console, context);
++stats.m_game_resets;
env.update_stats();
send_program_status_notification(env, NOTIFICATION_STATUS_UPDATE);
dump_image_and_throw_recoverable_exception(
env.program_info(), env.console, "Operation Failed",
"Resetting game to reattempt operation."
);
}catch(ProgramFinishedException&){
GO_HOME_WHEN_DONE.run_end_of_program(context);
throw;
Expand Down

0 comments on commit 0842a85

Please sign in to comment.