Permalink
Browse files

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.
  • Loading branch information...
1 parent 900e2d4 commit 0454bbc54f35cc500858cfcb61723ac256ea320c @mcostalba committed Jan 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/benchmark.cpp
View
@@ -102,7 +102,7 @@ void benchmark(const Position& current, istream& is) {
if (!file.is_open())
{
cerr << "Unable to open file " << fenFile << endl;
- exit(EXIT_FAILURE);
+ return;
}
while (getline(file, fen))

0 comments on commit 0454bbc

Please sign in to comment.