From 40422002b0d793310a2b5e318b32ca3016129089 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Sun, 10 Sep 2017 08:48:44 -0700 Subject: [PATCH] Make validation data uploader more resiliant to errors --- .../main/java/ca/uhn/fhir/cli/ValidationDataUploader.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ValidationDataUploader.java b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ValidationDataUploader.java index 94a8e03e904..5025b098918 100644 --- a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ValidationDataUploader.java +++ b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ValidationDataUploader.java @@ -294,8 +294,11 @@ public class ValidationDataUploader extends BaseCommand { next.setId(next.getIdElement().toUnqualifiedVersionless()); 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++; }