[minor](error msg) Fix wrong error message (#13950)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user