Replay errors show line number of action

I would have done this FOREVER ago but every time I looked
in ticpp for a way to get element file positions I somehow
missed Row() and Column()
This commit is contained in:
2025-04-25 11:17:23 -05:00
parent c0008e183a
commit 973cd71627
4 changed files with 10 additions and 2 deletions

View File

@@ -603,7 +603,7 @@ void cDialog::handle_events() {
// The error is recorded for debugging only. It should be triggered by replaying the actions.
pop_next_action();
}else if(replaying && has_next_action()){
throw std::string { "Replaying a dialog, have the wrong replay action: " + next_action_type() };
throw std::string { "Replaying a dialog, have the wrong replay action: " + next_action_type() + " on line " + std::to_string(next_action_line()) };
}else{
while(pollEvent(win, currentEvent)){
handle_one_event(currentEvent, fps_limiter);