Commit ca04aead by Sarath Subramanian

ATLAS-2299: Regression : Creating an entity of unknown type throws NPE - update error message

parent 2b5c0047
......@@ -346,7 +346,7 @@ public class AtlasEntityGraphDiscoveryV1 implements EntityGraphDiscovery {
AtlasEntityType type = typeRegistry.getEntityTypeByName(entity.getTypeName());
if (type == null) {
throw new AtlasBaseException(AtlasErrorCode.UNKNOWN_TYPENAME, entity.getTypeName());
throw new AtlasBaseException(AtlasErrorCode.TYPE_NAME_NOT_FOUND, entity.getTypeName());
}
recordObjectReference(entity.getGuid());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment