From ba4eabb68bdaeca1b5c2adb0c1585a77a8a4fe84 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 22 Jan 2020 16:35:37 +0900 Subject: ReplicationFileBasedConfig: fix UnusedException error from ErrorProne Change-Id: I2b04ba8cb9d88e2a40284f0b40195a522ac260e2 --- .../gerrit/plugins/replication/ReplicationFileBasedConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java index 9004968..683fb9b 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationFileBasedConfig.java @@ -191,7 +191,7 @@ public class ReplicationFileBasedConfig implements ReplicationConfig { result.add(new RemoteConfig(cfg, name)); } catch (URISyntaxException e) { throw new ConfigInvalidException( - String.format("remote %s has invalid URL in %s", name, cfg.getFile())); + String.format("remote %s has invalid URL in %s", name, cfg.getFile()), e); } } return result; -- cgit v1.2.3