Repository: atlas Updated Branches: refs/heads/master f2342f595 -> c6cc3314f
ATLAS-2326 Error code fixes Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/5c925920 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/5c925920 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/5c925920 Branch: refs/heads/master Commit: 5c9259209acc5227762de45014edf27bf8f4097d Parents: f2342f5 Author: apoorvnaik <[email protected]> Authored: Wed Jan 10 09:48:03 2018 -0800 Committer: apoorvnaik <[email protected]> Committed: Wed Jan 10 14:21:02 2018 -0800 ---------------------------------------------------------------------- .../main/java/org/apache/atlas/web/resources/EntityResource.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/5c925920/webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java ---------------------------------------------------------------------- diff --git a/webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java b/webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java index 8fd4d5a..fb59e04 100755 --- a/webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java +++ b/webapp/src/main/java/org/apache/atlas/web/resources/EntityResource.java @@ -655,6 +655,9 @@ public class EntityResource { } catch (IllegalArgumentException e) { LOG.error("Bad GUID={} ", guid, e); throw new WebApplicationException(Servlets.getErrorResponse(e, Response.Status.BAD_REQUEST)); + } catch (AtlasBaseException e) { + LOG.error("Unable to get instance definition for GUID {}", guid, e); + throw toWebApplicationException(e); } catch (WebApplicationException e) { LOG.error("Unable to get instance definition for GUID {}", guid, e); throw e;
