From 240f110a6526c66a0c4aa66e406fd4c1935139c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne=20Martin?= Date: Thu, 21 Nov 2024 11:40:50 -0800 Subject: [PATCH] Remove Generic Exception prefix on submission errors --- .../org/odk/collect/android/upload/InstanceServerUploader.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/collect_app/src/main/java/org/odk/collect/android/upload/InstanceServerUploader.java b/collect_app/src/main/java/org/odk/collect/android/upload/InstanceServerUploader.java index 110b8c82987..463d3b101cf 100644 --- a/collect_app/src/main/java/org/odk/collect/android/upload/InstanceServerUploader.java +++ b/collect_app/src/main/java/org/odk/collect/android/upload/InstanceServerUploader.java @@ -215,8 +215,7 @@ public String uploadOneSubmission(Instance instance, String urlString) throws Fo } } catch (Exception e) { - throw new FormUploadException(FAIL + "Generic Exception: " - + (e.getMessage() != null ? e.getMessage() : e.toString())); + throw new FormUploadException(e.getMessage() != null ? e.getMessage() : e.toString()); } markSubmissionComplete(instance);