commit 55e1019ec4d6da27faf690698e35750b60a3be7a Author: Karsten Loesing karsten.loesing@gmx.net Date: Sat Apr 21 08:18:50 2012 +0200
Throw the right exception when parsing network statuses. --- .../descriptor/impl/NetworkStatusEntryImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/org/torproject/descriptor/impl/NetworkStatusEntryImpl.java b/src/org/torproject/descriptor/impl/NetworkStatusEntryImpl.java index 2353bee..b3d4812 100644 --- a/src/org/torproject/descriptor/impl/NetworkStatusEntryImpl.java +++ b/src/org/torproject/descriptor/impl/NetworkStatusEntryImpl.java @@ -104,8 +104,8 @@ public class NetworkStatusEntryImpl implements NetworkStatusEntry { private void parseRLine(String line, String[] parts) throws DescriptorParseException { if (parts.length < 9) { - throw new RuntimeException("r line '" + line + "' has fewer " - + "space-separated elements than expected."); + throw new DescriptorParseException("r line '" + line + "' has " + + "fewer space-separated elements than expected."); } this.nickname = ParseHelper.parseNickname(line, parts[1]); this.fingerprint = ParseHelper.parseTwentyByteBase64String(line,
tor-commits@lists.torproject.org