Skip to content

Commit 865ebf7

Browse files
committed
Address comments
1 parent 4e3a422 commit 865ebf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rcl_action_server_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ Napi::Value ActionPublishStatus(const Napi::CallbackInfo& info) {
333333
}
334334

335335
if (ret_fini != RCL_RET_OK) {
336-
rcl_reset_error();
337336
Napi::Error::New(env, rcl_get_error_string().str)
338337
.ThrowAsJavaScriptException();
338+
rcl_reset_error();
339339
return env.Undefined();
340340
}
341341

0 commit comments

Comments
 (0)