Browse Source

fixed proxyError formatting

Eugene Fryntov 10 years ago
parent
commit
d80f4e5c9e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      psiphon/upstreamproxy/upstreamproxy.go

+ 1 - 2
psiphon/upstreamproxy/upstreamProxy.go → psiphon/upstreamproxy/upstreamproxy.go

@@ -37,8 +37,7 @@ func proxyError(err error) error {
 	if _, ok := err.(Error); ok {
 	if _, ok := err.(Error); ok {
 		return err
 		return err
 	}
 	}
-	format := fmt.Sprintf("upstreamproxy error: %v", err)
-	return &Error{error: fmt.Errorf(format, err)}
+	return &Error{error: fmt.Errorf("upstreamproxy error: %s", err)}
 }
 }
 
 
 type UpstreamProxyConfig struct {
 type UpstreamProxyConfig struct {