[minor](error msg) Fix wrong error message (#13950)

This commit is contained in:
Gabriel
2022-11-04 13:49:46 +08:00
committed by GitHub
parent dc01fb4085
commit 948e080b31
2 changed files with 2 additions and 3 deletions

View File

@ -381,7 +381,6 @@ int main(int argc, char** argv) {
status = doris::JniUtil::Init();
if (!status.ok()) {
LOG(WARNING) << "Failed to initialize JNI: " << status.get_error_msg();
doris::shutdown_logging();
exit(1);
}
#endif

View File

@ -38,7 +38,7 @@ doris::Status resolve_symbol(T& pointer, void* handle, const char* symbol) {
pointer = reinterpret_cast<T>(dlsym(handle, symbol));
return (pointer != nullptr)
? doris::Status::OK()
: doris::Status::RuntimeError("Failed to resolve the symbol %s", symbol);
: doris::Status::RuntimeError("Failed to resolve the symbol {}", symbol);
}
} // namespace
@ -71,7 +71,7 @@ LibJVMLoader& LibJVMLoader::instance() {
Status LibJVMLoader::load() {
if (_library.empty()) {
return Status::RuntimeError("Failed to find the library %s.", LIBJVM_SO);
return Status::RuntimeError("Failed to find the library {}.", LIBJVM_SO);
}
static std::once_flag resolve_symbols;