Skip to content

Commit

Permalink
Add error message to abort
Browse files Browse the repository at this point in the history
  • Loading branch information
royfalk committed Nov 19, 2024
1 parent 39f6eb5 commit 7488be2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/src/components/energy_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ void EnergyContainer::Load(std::string upgrade_key, std::string unit_key) {
break;

default: // This really can't happen
std::cerr << "Illegal container type in EnergyContainer::Load" << std::flush;
abort();
}
}
Expand All @@ -145,6 +146,7 @@ void EnergyContainer::SaveToCSV(std::map<std::string, std::string>& unit) const
break;

default: // This really can't happen
std::cerr << "Illegal container type in EnergyContainer::SaveToCSV" << std::flush;
abort();
}
}
Expand Down

0 comments on commit 7488be2

Please sign in to comment.