Skip to content

Commit

Permalink
also include search doc in context
Browse files Browse the repository at this point in the history
  • Loading branch information
fredex42 committed Oct 14, 2024
1 parent 2065327 commit 39cfb3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fronts-client/src/services/recipeQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ const recipeQuery = (baseUrl: string) => {
recipes,
};
} else {
const prevContext = Raven.getContext();
Raven.setUserContext({ ...prevContext, query: queryDoc });
captureErrors(response.status, content, `${baseUrl}/search`);
Raven.setUserContext(prevContext);
throw new Error(`Unable to contact recipe API: ${response.status}`);
}
},
Expand Down

0 comments on commit 39cfb3f

Please sign in to comment.