mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 22:45:13 +00:00
errors.Format
This commit is contained in:
6 files changed
+15
-11
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package protocol
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"v2ray.com/core/common/buf"
|
||||
@@ -228,7 +227,7 @@ func ReadRequest(reader io.Reader) (request *Socks5Request, err error) {
|
||||
return
|
||||
}
|
||||
default:
|
||||
err = fmt.Errorf("Socks: Unexpected address type %d", request.AddrType)
|
||||
err = errors.Format("Socks: Unexpected address type %d", request.AddrType)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user