[tor-commits] [goptlib/master] Fix a ProxyError usage example.
dcf at torproject.org
dcf at torproject.org
Fri Mar 31 07:20:34 UTC 2017
commit fcc1d072d63b3e843495d4af4c0f522ddbb9fefc
Author: David Fifield <david at bamsoftware.com>
Date: Fri Mar 31 00:19:47 2017 -0700
Fix a ProxyError usage example.
---
pt.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pt.go b/pt.go
index 9633254..3c018a6 100644
--- a/pt.go
+++ b/pt.go
@@ -42,7 +42,7 @@
// if ptInfo.ProxyURL != nil {
// // you need to interpret the proxy URL yourself
// // call pt.ProxyDone instead if it's a type you understand
-// pt.ProxyError("proxy %s is not supported")
+// pt.ProxyError(fmt.Sprintf("proxy %s is not supported", ptInfo.ProxyURL))
// os.Exit(1)
// }
// for _, methodName := range ptInfo.MethodNames {
More information about the tor-commits
mailing list