This is an automated email from the ASF dual-hosted git repository. sarath pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push: new 49576ba ATLAS-4180: [Atlas: Glossary Term Bulk Import] Update error message thrown while using @ in glossary/term name 49576ba is described below commit 49576ba7dffa3403a2917d7a8fc0d477cd31bc1f Author: chaitali borole <chaitali.bor...@cloudera.com> AuthorDate: Mon Mar 15 16:35:01 2021 +0530 ATLAS-4180: [Atlas: Glossary Term Bulk Import] Update error message thrown while using @ in glossary/term name Signed-off-by: Sarath Subramanian <sar...@apache.org> --- .../src/main/java/org/apache/atlas/glossary/GlossaryService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java b/repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java index df5fcbd..e526e1a 100644 --- a/repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java +++ b/repository/src/main/java/org/apache/atlas/glossary/GlossaryService.java @@ -1120,7 +1120,7 @@ public class GlossaryService { ret = glossaryTermUtils.getGlossaryTermDataList(fileData, failedTermMsgs); ret = createGlossaryTerms(ret); } catch (IOException e) { - throw new AtlasBaseException(AtlasErrorCode.FAILED_TO_UPLOAD, e); + throw new AtlasBaseException(AtlasErrorCode.FAILED_TO_UPLOAD, fileName); } return ret; @@ -1134,7 +1134,7 @@ public class GlossaryService { ret.add(createTerm(glossaryTerm)); } catch (AtlasBaseException e) { if (!e.getAtlasErrorCode().equals(AtlasErrorCode.GLOSSARY_TERM_ALREADY_EXISTS)) { - throw new AtlasBaseException(AtlasErrorCode.FAILED_TO_CREATE_GLOSSARY_TERM, e); + throw new AtlasBaseException(AtlasErrorCode.FAILED_TO_CREATE_GLOSSARY_TERM, glossaryTerm.getName()); } } }