cmd/tailscale: add detail to VpnService.Builder cosntruction errors

Updates tailscale/tailscale#645

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/3/head
Elias Naur 4 years ago
parent 943bded910
commit 454c59a4e5

@ -187,7 +187,7 @@ func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error {
jni.Value(jni.JavaString(env, dns.String())),
)
if err != nil {
return fmt.Errorf("VpnService.Builder.addDnsServer: %v", err)
return fmt.Errorf("VpnService.Builder.addDnsServer(%v): %v", dns, err)
}
}
@ -200,7 +200,7 @@ func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error {
jni.Value(jni.JavaString(env, dom)),
)
if err != nil {
return fmt.Errorf("VpnService.Builder.addSearchDomain: %v", err)
return fmt.Errorf("VpnService.Builder.addSearchDomain(%v): %v", dom, err)
}
}
@ -214,7 +214,7 @@ func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error {
jni.Value(route.Bits),
)
if err != nil {
return fmt.Errorf("VpnService.Builder.addRoute: %v", err)
return fmt.Errorf("VpnService.Builder.addRoute(%v): %v", route, err)
}
}
@ -228,7 +228,7 @@ func (b *backend) updateTUN(service jni.Object, cfg *router.Config) error {
jni.Value(addr.Bits),
)
if err != nil {
return fmt.Errorf("VpnService.Builder.addAddress: %v", err)
return fmt.Errorf("VpnService.Builder.addAddress(%v): %v", addr, err)
}
}

Loading…
Cancel
Save