Skip to content

Commit

Permalink
reinstated logic for handling 404 from get all pipelines request
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Apr 8, 2021
1 parent 77466c5 commit b810dcd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x-pack/plugins/ingest_pipelines/server/routes/api/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ export const registerGetRoutes = ({

return res.ok({ body: deserializePipelines(pipelines) });
} catch (error) {
return handleEsError({ error, response: res });
const errorResponse = handleEsError({ error, response: res });
if (errorResponse.status === 404) {
return res.ok({ body: [] });
}
return errorResponse;
}
})
);
Expand Down

0 comments on commit b810dcd

Please sign in to comment.