Closed pepone closed 1 year ago
It also updates the loop that reads the input parameters to make clear how to exit.
Having 3 while loops seems like a lot. Maybe we should just get rid of all these loops?
Having 3 while loops seems like a lot. Maybe we should just get rid of all these loops?
What about exiting and printing an error if stoi
fails with invalid_argument
and keeping just the main loop?
This PR fixes
IceGrid/replication
andIceDiscovery/replication
to correctly handle errors fromstoi
. It also updates the loop that reads the input parameters to make clear how to exit.