Make validation data uploader more resiliant to errors

This commit is contained in:
James Agnew 2017-09-10 08:48:44 -07:00
parent f216e0938d
commit 40422002b0
1 changed files with 5 additions and 2 deletions

View File

@ -294,8 +294,11 @@ public class ValidationDataUploader extends BaseCommand {
next.setId(next.getIdElement().toUnqualifiedVersionless()); next.setId(next.getIdElement().toUnqualifiedVersionless());
ourLog.info("Uploading v3-codesystems ValueSet {}/{} : {}", new Object[]{count, total, next.getIdElement().getValue()}); ourLog.info("Uploading v3-codesystems ValueSet {}/{} : {}", new Object[]{count, total, next.getIdElement().getValue()});
client.update().resource(next).execute(); try {
client.update().resource(next).execute();
} catch (Exception e) {
ourLog.error("Failed to upload: {}", e.toString());
}
count++; count++;
} }