1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Don't exit if unable to find bench file

Now that we can call 'bench' command also from
interactive terminal it makes no more sense to
exit the application if the user types a wrong
file name.

No functional change.
This commit is contained in:
Marco Costalba 2013-01-04 14:52:21 +01:00
parent 900e2d4e1e
commit 0454bbc54f

View file

@ -102,7 +102,7 @@ void benchmark(const Position& current, istream& is) {
if (!file.is_open()) if (!file.is_open())
{ {
cerr << "Unable to open file " << fenFile << endl; cerr << "Unable to open file " << fenFile << endl;
exit(EXIT_FAILURE); return;
} }
while (getline(file, fen)) while (getline(file, fen))