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

@@ -984,7 +984,7 @@ static void replay_action(Element& action) {
throw std::string { "Replay system internal error! advance_time() was supposed to be called by the last action, but wasn't: " } + _last_action_type;
}else{
std::ostringstream sstr;
sstr << "Couldn't replay action: " << action;
sstr << "Couldn't replay action: " << action << " on line " << action.Row();
replaying = false;
throw sstr.str();
}