fix error message

This commit is contained in:
sawka 2023-04-02 23:11:29 -07:00
parent 01a99cba03
commit 1810107572

View File

@ -75,7 +75,7 @@ func MakeClientProc(ctx context.Context, ecmd *exec.Cmd) (*ClientProc, *packet.I
initPk := pk.(*packet.InitPacketType) initPk := pk.(*packet.InitPacketType)
if initPk.NotFound { if initPk.NotFound {
cproc.Close() cproc.Close()
return nil, initPk, fmt.Errorf("mshell client not found", semver.MajorMinor(base.MShellVersion)) return nil, initPk, fmt.Errorf("mshell client not found")
} }
if semver.MajorMinor(initPk.Version) != semver.MajorMinor(base.MShellVersion) { if semver.MajorMinor(initPk.Version) != semver.MajorMinor(base.MShellVersion) {
cproc.Close() cproc.Close()