mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2025-02-18 18:28:33 +00:00
feat: add "Unknown error." into ErrorStringEnglish map.
Signed-off-by: TaowerfulMAX <liurantao@huawei.com>
This commit is contained in:
parent
78ab41ddcc
commit
2f006df974
@ -934,8 +934,6 @@ string HdcServerForClient::GetErrorString(uint32_t errorCode)
|
||||
if (map != ErrorStringEnglish.end()) {
|
||||
return map->second;
|
||||
}
|
||||
// default error
|
||||
string UnknownError = "Unknown error";
|
||||
return UnknownError;
|
||||
return ErrorStringEnglish.at(0xFFFFFF); // 0xFFFFFF: Unknown error
|
||||
}
|
||||
} // namespace Hdc
|
||||
|
@ -78,6 +78,7 @@ private:
|
||||
{0x002103, "Failed to start the HDC server process!\r\n"
|
||||
"Please check the HDC server process port is occupied or used as an exception port.\r\n"
|
||||
"Alternatively, change the OHOS_HDC_SERVER_PORT environment variable and re-run the command."},
|
||||
{0xFFFFFF, "Unknown error"},
|
||||
};
|
||||
};
|
||||
} // namespace Hdc
|
||||
|
Loading…
x
Reference in New Issue
Block a user