[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 3ca51ff88f1fd5fad714e261b37baaf6bb4cdb6b
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits