Skip to content

Commit 683cddf

Browse files
better error messages
1 parent 3f61603 commit 683cddf

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

ethminer/FarmClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ class FarmClient : public jsonrpc::Client
453453
}
454454
catch (std::exception& e)
455455
{
456-
LogB << "Error in routine tokenBalance: " << e.what();
456+
LogD << "Error in routine tokenBalance: " << e.what();
457457
return 0;
458458
}
459459
}

ethminer/MinerAux.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,9 @@ class MinerCLI
10061006
catch (jsonrpc::JsonRpcException& e)
10071007
{
10081008
connectedToNode = false;
1009-
LogB << "An error occurred communicating with the node : " << e.what();
1009+
string msg = (m_opMode == OperationMode::Pool) ? "mining pool" : "node";
1010+
LogB << "An error occurred communicating with your " << msg << ". Please check your host/port settings.";
1011+
LogB << "Error text: " << e.what();
10101012
LogS << "Trying again in 5 seconds ...";
10111013
farmRetries++;
10121014
if (farmRetries == maxRetries)

release/build.bat

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ cd %~dp0
1616
IF ERRORLEVEL 1 GOTO ERROR
1717

1818

19-
REM Copy tokenminer.ini and Readme file
19+
REM Copy tokenminer.ini
20+
2021
copy "..\tokenminer.ini" stage\tokenminer
21-
copy "..\Readme.md" stage
22+
23+
REM convert readme to html and copy to staging. see https://github.com/joeyespo/grip
24+
25+
grip ../readme.md --export ./stage/readme.html
26+
2227

2328
REM Copy binaries
29+
2430
copy "..\build\ethminer\release\tokenminer.exe" stage\tokenminer
2531
copy "..\build\ethminer\release\libcurl.dll" stage\tokenminer
2632
copy "..\build\ethminer\release\libmicrohttpd-dll.dll" stage\tokenminer

0 commit comments

Comments
 (0)