Refine error message

This commit is contained in:
Mygod
2019-02-06 01:33:05 +08:00
parent 3c68c5792d
commit eb8b5ff1de

View File

@@ -89,7 +89,7 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh
} }
init { init {
check(downstreams.add(downstream)) { "Double routing detected" } check(downstreams.add(downstream)) { "Double routing detected from $caller" }
} }
private val hostAddress = try { private val hostAddress = try {
@@ -312,6 +312,6 @@ class Routing(private val caller: Any, private val downstream: String) : IpNeigh
fallbackUpstream.subrouting?.transaction?.revert() fallbackUpstream.subrouting?.transaction?.revert()
upstream.subrouting?.transaction?.revert() upstream.subrouting?.transaction?.revert()
transaction.revert() transaction.revert()
check(downstreams.remove(downstream)) { "Double reverting detected" } check(downstreams.remove(downstream)) { "Double reverting detected from $caller" }
} }
} }