Skip to content

Commit dcc5dfc

Browse files
committed
fix bug
1 parent 37b4126 commit dcc5dfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/clients/meta/MetaClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ Status MetaClient::handleResponse(const RESP& resp) {
990990
case nebula::cpp2::ErrorCode::E_HOST_CAN_NOT_BE_ADDED:
991991
return Status::Error("Could not add a host, which is not a storage and not expired either");
992992
default:
993-
return Status::Error("Unknown error!");
993+
return Status::Error("Unknown error %d!", static_cast<int>(resp.get_code()));
994994
}
995995
}
996996

src/common/plugin/fulltext/elasticsearch/ESAdapter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Status ESAdapter::createIndex(const std::string& name,
9898
mappings["properties"][field] = std::move(f);
9999
}
100100

101-
auto result = randomClient().createIndex(name, mappings);
101+
auto result = randomClient().createIndex(name, obj);
102102
if (!result.ok()) {
103103
return result.status();
104104
}

0 commit comments

Comments
 (0)