diff --git a/x-pack/plugins/case/server/routes/api/cases/push_case.ts b/x-pack/plugins/case/server/routes/api/cases/push_case.ts index ef7c9d575ef1eee..c812ae86d48d4cd 100644 --- a/x-pack/plugins/case/server/routes/api/cases/push_case.ts +++ b/x-pack/plugins/case/server/routes/api/cases/push_case.ts @@ -102,6 +102,10 @@ export function initPushCaseApi({ }, }); + if (pushRes.status === 'error') { + throw new Error(pushRes.serviceMessage ?? pushRes.message ?? 'Error pushing to service'); + } + /* End of push to external service */ /* Start of update case with push information */