Repository: incubator-atlas Updated Branches: refs/heads/master 1cc40fd9e -> 220213dba
ATLAS-1660: Error code mismatch in while GETing a type that doesn't exist. Signed-off-by: Madhan Neethiraj <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/ae6fd0a1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/ae6fd0a1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/ae6fd0a1 Branch: refs/heads/master Commit: ae6fd0a183b42ca7bbeea1a574da0d1d48b51b76 Parents: 1cc40fd Author: Sarath Subramanian <[email protected]> Authored: Thu Mar 16 14:50:06 2017 -0700 Committer: Madhan Neethiraj <[email protected]> Committed: Thu Mar 23 17:54:25 2017 -0700 ---------------------------------------------------------------------- intg/src/main/java/org/apache/atlas/type/AtlasTypeRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/ae6fd0a1/intg/src/main/java/org/apache/atlas/type/AtlasTypeRegistry.java ---------------------------------------------------------------------- diff --git a/intg/src/main/java/org/apache/atlas/type/AtlasTypeRegistry.java b/intg/src/main/java/org/apache/atlas/type/AtlasTypeRegistry.java index d40eb51..b6cb48d 100644 --- a/intg/src/main/java/org/apache/atlas/type/AtlasTypeRegistry.java +++ b/intg/src/main/java/org/apache/atlas/type/AtlasTypeRegistry.java @@ -100,7 +100,7 @@ public class AtlasTypeRegistry { ret = new AtlasMapType(keyTypeName, valueTypeName, this); } else { - throw new AtlasBaseException(AtlasErrorCode.UNKNOWN_TYPENAME, typeName); + throw new AtlasBaseException(AtlasErrorCode.TYPE_NAME_NOT_FOUND, typeName); } }
