mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-12 10:35:51 +00:00
fix(graphql): Bubbling up exceptions logged in GraphQL resolvers (#2163)
Co-authored-by: John Joyce <john@acryl.io>
This commit is contained in:
parent
410b823be9
commit
ae1c21a516
@ -37,7 +37,7 @@ public class BrowsePathsResolver implements DataFetcher<CompletableFuture<List<B
|
||||
throw new RuntimeException("Failed to retrieve browse paths: "
|
||||
+ String.format("entity type %s, urn %s",
|
||||
input.getType(),
|
||||
input.getUrn()));
|
||||
input.getUrn()), e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ public class BrowseResolver implements DataFetcher<CompletableFuture<BrowseResul
|
||||
input.getPath(),
|
||||
input.getFilters(),
|
||||
start,
|
||||
count));
|
||||
count), e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ public class AutoCompleteResolver implements DataFetcher<CompletableFuture<AutoC
|
||||
input.getField(),
|
||||
input.getQuery(),
|
||||
input.getFilters(),
|
||||
input.getLimit()));
|
||||
input.getLimit()), e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ public class SearchResolver implements DataFetcher<CompletableFuture<SearchResul
|
||||
input.getQuery(),
|
||||
input.getFilters(),
|
||||
start,
|
||||
count));
|
||||
count), e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user