Skip to content

Commit

Permalink
make sure errors on request still trigger toast
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Tackett <[email protected]>
  • Loading branch information
Adam Tackett committed Feb 5, 2025
1 parent 9c12878 commit 842e6f2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ export const handleTracesRequest = async (
percentileRangesResult.status === 'fulfilled' ? percentileRangesResult.value : {};
const response = responseResult.value;

if ((response.statusCode && response.statusCode >= 400) || response.error) {
return Promise.reject(response);
}

if (
!response ||
!response.aggregations ||
Expand Down

0 comments on commit 842e6f2

Please sign in to comment.