From 0454bbc54f35cc500858cfcb61723ac256ea320c Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 4 Jan 2013 14:52:21 +0100 Subject: [PATCH] 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. --- src/benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2