1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Improve error message on missing net.

small rewording, but also print the download url for the default net.

closes https://github.com/official-stockfish/Stockfish/pull/2954

No functional change
This commit is contained in:
Joost VandeVondele 2020-08-09 11:05:07 +02:00
parent d7a26899a9
commit 320fa1b2f0

View file

@ -50,9 +50,13 @@ namespace Eval {
std::string eval_file = std::string(Options["EvalFile"]); std::string eval_file = std::string(Options["EvalFile"]);
if (useNNUE && eval_file_loaded != eval_file) if (useNNUE && eval_file_loaded != eval_file)
{ {
std::cerr << "Use of NNUE evaluation, but the file " << eval_file << " was not loaded successfully. " UCI::OptionsMap defaults;
<< "These network evaluation parameters must be available, compatible with this version of the code. " UCI::init(defaults);
<< "The UCI option EvalFile might need to specify the full path, including the directory/folder name, to the file." << std::endl;
std::cerr << "NNUE evaluation used, but the network file " << eval_file << " was not loaded successfully. "
<< "These network evaluation parameters must be available, and compatible with this version of the code. "
<< "The UCI option EvalFile might need to specify the full path, including the directory/folder name, to the file. "
<< "The default net can be downloaded from: https://tests.stockfishchess.org/api/nn/"+std::string(defaults["EvalFile"]) << std::endl;
std::exit(EXIT_FAILURE); std::exit(EXIT_FAILURE);
} }