From: Marco Costalba Date: Fri, 4 Jan 2013 13:52:21 +0000 (+0100) Subject: Don't exit if unable to find bench file X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=0454bbc54f35cc500858cfcb61723ac256ea320c 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. --- diff --git a/src/benchmark.cpp b/src/benchmark.cpp index cb54514b..4a383f00 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -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))