fix: initialize error message with cipher (#1760)
Some checks failed
Build / build (map[abi:1 goarch:loong64 goos:linux output:loong64-abi1]) (push) Failing after 16s
Build / build (map[abi:2 goarch:loong64 goos:linux output:loong64-abi2]) (push) Failing after 9s
Build / build (map[goamd64:v1 goarch:amd64 goos:darwin goversion:1.20 output:amd64-compatible-go120]) (push) Failing after 8s
Build / build (map[goamd64:v1 goarch:amd64 goos:darwin goversion:1.22 output:amd64-compatible-go122]) (push) Failing after 8s
Build / build (map[goamd64:v1 goarch:amd64 goos:darwin output:amd64-compatible]) (push) Failing after 8s
Build / build (map[goamd64:v1 goarch:amd64 goos:freebsd output:amd64-compatible]) (push) Failing after 8s
Build / build (map[goamd64:v1 goarch:amd64 goos:linux goversion:1.20 output:amd64-compatible-go120 test:test]) (push) Failing after 7s
Build / build (map[goamd64:v1 goarch:amd64 goos:linux output:amd64-compatible test:test]) (push) Failing after 7s
Build / build (map[goamd64:v1 goarch:amd64 goos:windows goversion:1.20 output:amd64-compatible-go120]) (push) Failing after 6s
Build / build (map[goamd64:v1 goarch:amd64 goos:windows goversion:1.21 output:amd64-compatible-go121]) (push) Failing after 7s
Build / build (map[goamd64:v1 goarch:amd64 goos:windows goversion:1.22 output:amd64-compatible-go122]) (push) Failing after 6s
Build / build (map[goamd64:v1 goarch:amd64 goos:windows output:amd64-compatible]) (push) Failing after 8s
Build / build (map[goamd64:v3 goarch:amd64 goos:darwin goversion:1.20 output:amd64-go120]) (push) Failing after 7s
Build / build (map[goamd64:v3 goarch:amd64 goos:darwin goversion:1.22 output:amd64-go122]) (push) Failing after 6s
Build / build (map[goamd64:v3 goarch:amd64 goos:darwin output:amd64]) (push) Failing after 7s
Build / build (map[goamd64:v3 goarch:amd64 goos:freebsd output:amd64]) (push) Failing after 8s
Build / build (map[goamd64:v3 goarch:amd64 goos:linux goversion:1.20 output:amd64-go120]) (push) Failing after 7s
Build / build (map[goamd64:v3 goarch:amd64 goos:linux output:amd64]) (push) Failing after 7s
Build / build (map[goamd64:v3 goarch:amd64 goos:windows goversion:1.20 output:amd64-go120]) (push) Failing after 6s
Build / build (map[goamd64:v3 goarch:amd64 goos:windows goversion:1.21 output:amd64-go121]) (push) Failing after 1m3s
Build / build (map[goamd64:v3 goarch:amd64 goos:windows goversion:1.22 output:amd64-go122]) (push) Failing after 10s
Build / build (map[goamd64:v3 goarch:amd64 goos:windows output:amd64]) (push) Failing after 8s
Build / build (map[goarch:386 goos:android ndk:i686-linux-android34 output:386]) (push) Failing after 9s
Build / build (map[goarch:386 goos:freebsd output:386]) (push) Failing after 8s
Build / build (map[goarch:386 goos:linux goversion:1.20 output:386-go120]) (push) Failing after 1m30s
Build / build (map[goarch:386 goos:linux output:386]) (push) Failing after 1m21s
Build / build (map[goarch:386 goos:windows goversion:1.20 output:386-go120]) (push) Failing after 11s
Build / build (map[goarch:386 goos:windows goversion:1.21 output:386-go121]) (push) Failing after 9s
Build / build (map[goarch:386 goos:windows goversion:1.22 output:386-go122]) (push) Failing after 9s
Build / build (map[goarch:386 goos:windows output:386]) (push) Failing after 8s
Build / build (map[goarch:amd64 goos:android ndk:x86_64-linux-android34 output:amd64]) (push) Failing after 9s
Build / build (map[goarch:arm goarm:5 goos:linux output:armv5]) (push) Failing after 9s
Build / build (map[goarch:arm goarm:6 goos:linux output:armv6]) (push) Failing after 9s
Build / build (map[goarch:arm goarm:7 goos:linux output:armv7]) (push) Failing after 8s
Build / build (map[goarch:arm goarm:7 goos:windows output:armv7]) (push) Failing after 10s
Build / build (map[goarch:arm goos:android ndk:armv7a-linux-androideabi34 output:armv7]) (push) Failing after 9s
Build / build (map[goarch:arm64 goos:android ndk:aarch64-linux-android34 output:arm64-v8]) (push) Failing after 9s
Build / build (map[goarch:arm64 goos:darwin goversion:1.20 output:arm64-go120]) (push) Failing after 9s
Build / build (map[goarch:arm64 goos:darwin goversion:1.22 output:arm64-go122]) (push) Failing after 9s
Build / build (map[goarch:arm64 goos:darwin output:arm64]) (push) Failing after 9s
Build / build (map[goarch:arm64 goos:freebsd output:arm64]) (push) Failing after 9s
Build / build (map[goarch:arm64 goos:linux output:arm64]) (push) Failing after 9s
Build / build (map[goarch:arm64 goos:windows output:arm64]) (push) Failing after 9s
Build / build (map[goarch:mips gomips:hardfloat goos:linux output:mips-hardfloat]) (push) Failing after 9s
Build / build (map[goarch:mips gomips:softfloat goos:linux output:mips-softfloat]) (push) Failing after 9s
Build / build (map[goarch:mips64 goos:linux output:mips64]) (push) Failing after 9s
Build / build (map[goarch:mips64le goos:linux output:mips64le]) (push) Failing after 9s
Build / build (map[goarch:mipsle gomips:hardfloat goos:linux output:mipsle-hardfloat]) (push) Failing after 9s
Build / build (map[goarch:mipsle gomips:softfloat goos:linux output:mipsle-softfloat]) (push) Failing after 9s
Build / build (map[goarch:riscv64 goos:linux output:riscv64]) (push) Failing after 10s
Build / build (map[goarch:s390x goos:linux output:s390x]) (push) Failing after 9s
Trigger CMFA Update / trigger-CMFA-update (push) Failing after 9s
Build / Upload-Prerelease (push) Has been skipped
Build / Upload-Release (push) Has been skipped
Build / Docker (push) Has been skipped

This commit is contained in:
lucidhz 2025-01-07 13:25:54 +08:00 committed by Larvan2
parent 56c128880c
commit c7661d7765
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ func NewShadowSocks(option ShadowSocksOption) (*ShadowSocks, error) {
Password: option.Password,
})
if err != nil {
return nil, fmt.Errorf("ss %s initialize error: %w", addr, err)
return nil, fmt.Errorf("ss %s cipher: %s initialize error: %w", addr, option.Cipher, err)
}
var v2rayOption *v2rayObfs.Option

View File

@ -141,7 +141,7 @@ func NewShadowSocksR(option ShadowSocksROption) (*ShadowSocksR, error) {
password := option.Password
coreCiph, err := core.PickCipher(cipher, nil, password)
if err != nil {
return nil, fmt.Errorf("ssr %s initialize error: %w", addr, err)
return nil, fmt.Errorf("ssr %s cipher: %s initialize error: %w", addr, cipher, err)
}
var (
ivSize int