From eb8b5ff1de56b6340084db4be73281dac9a325c7 Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 6 Feb 2019 01:33:05 +0800 Subject: [PATCH] Refine error message --- mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt index 614192b2..55a62f8a 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/Routing.kt @@ -89,7 +89,7 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh } init { - check(downstreams.add(downstream)) { "Double routing detected" } + check(downstreams.add(downstream)) { "Double routing detected from $caller" } } private val hostAddress = try { @@ -312,6 +312,6 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh fallbackUpstream.subrouting?.transaction?.revert() upstream.subrouting?.transaction?.revert() transaction.revert() - check(downstreams.remove(downstream)) { "Double reverting detected" } + check(downstreams.remove(downstream)) { "Double reverting detected from $caller" } } }