diff --git a/lib/utils/call-server-endpoint.js b/lib/utils/call-server-endpoint.js --- a/lib/utils/call-server-endpoint.js +++ b/lib/utils/call-server-endpoint.js @@ -204,8 +204,8 @@ type: forcePolicyAcknowledgmentActionType, payload, }); - return undefined; - } else if (error) { + } + if (error) { throw new ServerError(error, payload); } options?.getResultInfo?.({ interface: 'REST' });