sohami commented on a change in pull request #1644: DRILL-7036: Improve UI for 
alert and error messages
URL: https://github.com/apache/drill/pull/1644#discussion_r258600514
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/ProfileResources.java
 ##########
 @@ -376,8 +376,13 @@ public String getProfileJSON(@PathParam("queryid") String 
queryId) {
   @Path("/profiles/{queryid}")
   @Produces(MediaType.TEXT_HTML)
   public Viewable getProfile(@PathParam("queryid") String queryId){
-    ProfileWrapper wrapper = new ProfileWrapper(getQueryProfile(queryId), 
work.getContext().getConfig());
-    return ViewableWithPermissions.create(authEnabled.get(), 
"/rest/profile/profile.ftl", sc, wrapper);
+    try {
+      ProfileWrapper wrapper = new ProfileWrapper(getQueryProfile(queryId), 
work.getContext().getConfig());
+      return ViewableWithPermissions.create(authEnabled.get(), 
"/rest/profile/profile.ftl", sc, wrapper);
+    } catch (Exception | Error e) {
+      e.printStackTrace();
 
 Review comment:
   Same as above for `Error` and `printStackTrace`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to