summaryrefslogtreecommitdiff
path: root/offload/plugins-nextgen/common/src/RPC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'offload/plugins-nextgen/common/src/RPC.cpp')
-rw-r--r--offload/plugins-nextgen/common/src/RPC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/offload/plugins-nextgen/common/src/RPC.cpp b/offload/plugins-nextgen/common/src/RPC.cpp
index fc90bb2e032f..678be78b56af 100644
--- a/offload/plugins-nextgen/common/src/RPC.cpp
+++ b/offload/plugins-nextgen/common/src/RPC.cpp
@@ -176,7 +176,8 @@ Error RPCServerTy::initDevice(plugin::GenericDeviceTy &Device,
TARGET_ALLOC_HOST);
if (!RPCBuffer)
return plugin::Plugin::error(
- "Failed to initialize RPC server for device %d", Device.getDeviceId());
+ error::ErrorCode::UNKNOWN,
+ "failed to initialize RPC server for device %d", Device.getDeviceId());
// Get the address of the RPC client from the device.
plugin::GlobalTy ClientGlobal("__llvm_rpc_client", sizeof(rpc::Client));