Skip to content

Commit

Permalink
better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mining-visualizer committed Jun 11, 2018
1 parent 3f61603 commit 683cddf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ethminer/FarmClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
4 changes: 3 additions & 1 deletion ethminer/MinerAux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 8 additions & 2 deletions release/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 683cddf

Please sign in to comment.