[tor-commits] [goptlib/master] Show the error message if there is one.

dcf at torproject.org dcf at torproject.org
Sun Nov 10 03:11:28 UTC 2013


commit 3ca51ff88f1fd5fad714e261b37baaf6bb4cdb6b
Author: David Fifield <david at bamsoftware.com>
Date:   Sat Nov 9 17:40:11 2013 -0800

    Show the error message if there is one.
---
 pt_test.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pt_test.go b/pt_test.go
index 62ec5f6..21cb5cb 100644
--- a/pt_test.go
+++ b/pt_test.go
@@ -75,7 +75,7 @@ func TestGetManagedTransportVer(t *testing.T) {
 		os.Setenv("TOR_PT_MANAGED_TRANSPORT_VER", test.input)
 		output, err := getManagedTransportVer()
 		if err != nil {
-			t.Errorf("%q unexpectedly returned an error", test.input)
+			t.Errorf("%q unexpectedly returned an error: %s", test.input, err)
 		}
 		if output != test.expected {
 			t.Errorf("%q → %q (expected %q)", test.input, output, test.expected)





More information about the tor-commits mailing list