mirror of
https://github.com/espressif/openthread.git
synced 2026-08-24 19:29:52 +00:00
print error message on cli failure (#1610)
This commit is contained in:
+3
-3
@@ -281,15 +281,15 @@ int Interpreter::Hex2Bin(const char *aHex, uint8_t *aBin, uint16_t aBinLength)
|
||||
return static_cast<int>(cur - aBin);
|
||||
}
|
||||
|
||||
void Interpreter::AppendResult(ThreadError error)
|
||||
void Interpreter::AppendResult(ThreadError aError)
|
||||
{
|
||||
if (error == kThreadError_None)
|
||||
if (aError == kThreadError_None)
|
||||
{
|
||||
sServer->OutputFormat("Done\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
sServer->OutputFormat("Error %d\r\n", error);
|
||||
sServer->OutputFormat("Error %d: %s\r\n", aError, otThreadErrorToString(aError));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user