Revision d5693d33
Added by Andreas Müller over 2 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/TermRepresentationUpdater.java | ||
---|---|---|
92 | 92 |
String name = label != null ? label : abbrev != null ? abbrev : description; |
93 | 93 |
String message = "Term for representations update does not exist. Term not updated: " + CdmUtils.Nz(name) + "(" + uuidTerm + ")"; |
94 | 94 |
monitor.warning(message); |
95 |
result.addError(message, this, "invoke");
|
|
95 |
result.addWarning(message, this, "invoke");
|
|
96 | 96 |
return; |
97 | 97 |
} |
98 | 98 |
|
... | ... | |
104 | 104 |
String message = "Language for language uuid (%s) could not be found. Term representations not updated."; |
105 | 105 |
message = String.format(message, uuidLanguage.toString()); |
106 | 106 |
monitor.warning(message); |
107 |
result.addError(message, this, "invoke");
|
|
107 |
result.addWarning(message, this, "invoke");
|
|
108 | 108 |
return; |
109 | 109 |
} |
110 | 110 |
} |
... | ... | |
112 | 112 |
Integer repId = getRepresentationId(datasource, monitor, langId, caseType); |
113 | 113 |
if (repId == null){ |
114 | 114 |
String message = "repId is null"; |
115 |
result.addError(message, this, "invoke");
|
|
115 |
result.addWarning(message, this, "invoke");
|
|
116 | 116 |
return; |
117 | 117 |
} |
118 | 118 |
|
Also available in: Unified diff
fix #9831 reduce error handling for missing terms, languages or representations from error to warning in TermRepresentationUpdater