Don't exit if unable to find bench file
authorMarco Costalba <mcostalba@gmail.com>
Fri, 4 Jan 2013 13:52:21 +0000 (14:52 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 4 Jan 2013 13:52:21 +0000 (14:52 +0100)
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.

src/benchmark.cpp

index cb54514ba0f9b0013ed3a2400d3f8fa43513cd88..4a383f00d5ccf85bbfd271486e9b8376b4e99d38 100644 (file)
@@ -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))