]> git.sesse.net Git - stockfish/blobdiff - src/book.cpp
Rewrite the way application exits
[stockfish] / src / book.cpp
index c69eab739b7dfcae8284db5c417225ad466a831a..c6e1e436daa2f192e8c83afc7d03b2ca876bb524 100644 (file)
@@ -372,7 +372,7 @@ void Book::open(const string& fName) {
   if (!good())
   {
       cerr << "Failed to open book file " << fileName << endl;
-      exit(EXIT_FAILURE);
+      Application::exit_with_failure();
   }
 }
 
@@ -489,7 +489,7 @@ void Book::read_entry(BookEntry& entry, int idx) {
   if (!good())
   {
       cerr << "Failed to read book entry at index " << idx << endl;
-      exit(EXIT_FAILURE);
+      Application::exit_with_failure();
   }
 }