diff --git a/src/main/java/com/amplitude/HttpTransport.java b/src/main/java/com/amplitude/HttpTransport.java index cc3d07a..12f5eb6 100644 --- a/src/main/java/com/amplitude/HttpTransport.java +++ b/src/main/java/com/amplitude/HttpTransport.java @@ -434,6 +434,7 @@ public void run() { callbackMessage = "Unknown response status."; } } catch (Exception exception) { + callbackMessage = "Error sending events due to the exception: " + exception.getMessage(); logger.error("Flush Thread Error", Utils.getStackTrace(exception)); logger.error("Error event payload", events.toString()); } finally {