mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-11 18:36:55 +00:00
Fix xpc build after 777180a32b6107
This commit is contained in:
parent
ca2abea29a
commit
95cb22d0f9
@ -37,7 +37,8 @@ json::Object encodeError(Error E) {
|
||||
}
|
||||
|
||||
Error decodeError(const json::Object &O) {
|
||||
std::string Msg = O.getString("message").getValueOr("Unspecified error");
|
||||
std::string Msg =
|
||||
std::string(O.getString("message").getValueOr("Unspecified error"));
|
||||
if (auto Code = O.getInteger("code"))
|
||||
return make_error<LSPError>(std::move(Msg), ErrorCode(*Code));
|
||||
return make_error<StringError>(std::move(Msg), inconvertibleErrorCode());
|
||||
|
Loading…
x
Reference in New Issue
Block a user