projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
900e2d4
)
Don't exit if unable to find bench file
author
Marco Costalba
<mcostalba@gmail.com>
Fri, 4 Jan 2013 13:52:21 +0000 (14:52 +0100)
committer
Marco 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
patch
|
blob
|
history
diff --git
a/src/benchmark.cpp
b/src/benchmark.cpp
index
cb54514
..
4a383f0
100644
(file)
--- 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))