Skip to content

Commit c0a7d75

Browse files
committed
Wrap error
1 parent efc63c3 commit c0a7d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func (a *agent) handleSSHSession(session ssh.Session) error {
380380
if ssh.AgentRequested(session) {
381381
l, err := ssh.NewAgentListener()
382382
if err != nil {
383-
return xerrors.Errorf("new agent listener:", err)
383+
return xerrors.Errorf("new agent listener: %w", err)
384384
}
385385
defer l.Close()
386386
go ssh.ForwardAgentConnections(l, session)

0 commit comments

Comments
 (0)