From 683cddffd95b98a00480d46cafc1d00836f56153 Mon Sep 17 00:00:00 2001 From: mvis Date: Sun, 10 Jun 2018 22:49:40 -0700 Subject: [PATCH] better error messages --- ethminer/FarmClient.h | 2 +- ethminer/MinerAux.h | 4 +++- release/build.bat | 10 ++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ethminer/FarmClient.h b/ethminer/FarmClient.h index c8d648a..2dfdfe8 100644 --- a/ethminer/FarmClient.h +++ b/ethminer/FarmClient.h @@ -453,7 +453,7 @@ class FarmClient : public jsonrpc::Client } catch (std::exception& e) { - LogB << "Error in routine tokenBalance: " << e.what(); + LogD << "Error in routine tokenBalance: " << e.what(); return 0; } } diff --git a/ethminer/MinerAux.h b/ethminer/MinerAux.h index 470ab56..a36b3f8 100644 --- a/ethminer/MinerAux.h +++ b/ethminer/MinerAux.h @@ -1006,7 +1006,9 @@ class MinerCLI catch (jsonrpc::JsonRpcException& e) { connectedToNode = false; - LogB << "An error occurred communicating with the node : " << e.what(); + string msg = (m_opMode == OperationMode::Pool) ? "mining pool" : "node"; + LogB << "An error occurred communicating with your " << msg << ". Please check your host/port settings."; + LogB << "Error text: " << e.what(); LogS << "Trying again in 5 seconds ..."; farmRetries++; if (farmRetries == maxRetries) diff --git a/release/build.bat b/release/build.bat index ee582be..441bd30 100644 --- a/release/build.bat +++ b/release/build.bat @@ -16,11 +16,17 @@ cd %~dp0 IF ERRORLEVEL 1 GOTO ERROR -REM Copy tokenminer.ini and Readme file +REM Copy tokenminer.ini + copy "..\tokenminer.ini" stage\tokenminer -copy "..\Readme.md" stage + +REM convert readme to html and copy to staging. see https://github.com/joeyespo/grip + +grip ../readme.md --export ./stage/readme.html + REM Copy binaries + copy "..\build\ethminer\release\tokenminer.exe" stage\tokenminer copy "..\build\ethminer\release\libcurl.dll" stage\tokenminer copy "..\build\ethminer\release\libmicrohttpd-dll.dll" stage\tokenminer