From 5c646219e78c9f80b615ea2c9abc4407a55ad65a Mon Sep 17 00:00:00 2001 From: Hoan Nguyen Date: Mon, 8 Nov 2021 15:53:34 -0800 Subject: [PATCH] Fix bug by passing exception as root cause --- .../src/com/amazonaws/eclipse/core/regions/RegionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-toolkit-eclipse-master/bundles/com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/RegionUtils.java b/aws-toolkit-eclipse-master/bundles/com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/RegionUtils.java index 1f17a6ab9..9df5519f4 100644 --- a/aws-toolkit-eclipse-master/bundles/com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/RegionUtils.java +++ b/aws-toolkit-eclipse-master/bundles/com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/regions/RegionUtils.java @@ -201,7 +201,7 @@ public static Region getRegionByEndpoint(String endpoint) { targetEndpointUrl = new URL(endpoint); } catch (MalformedURLException e) { throw new RuntimeException( - "Unable to parse service endpoint: " + e.getMessage()); + "Unable to parse service endpoint: ", e); } String targetHost = targetEndpointUrl.getHost();