MCPcopy Create free account
hub / github.com/tailscale/tailscale / userVisibleError

Struct userVisibleError

ssh/tailssh/tailssh.go:1634–1637  ·  view source on GitHub ↗

userVisibleError is a wrapper around an error that implements SSHTerminationError, so msg is written to their session.

Source from the content-addressed store, hash-verified

1632// userVisibleError is a wrapper around an error that implements
1633// SSHTerminationError, so msg is written to their session.
1634type userVisibleError struct {
1635 msg string
1636 error
1637}
1638
1639func (ue userVisibleError) SSHTerminationMessage() string { return ue.msg }
1640

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected