FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: use a common Err for permission denied by guilhem · Pull Request #188 · gliderlabs/ssh · GitHub

/ ssh Public

feat: use a common Err for permission denied - #188

Open
guilhem wants to merge 1 commit into
gliderlabs:masterfrom
guilhem:error
Open

feat: use a common Err for permission denied#188
guilhem wants to merge 1 commit into
gliderlabs:masterfrom
guilhem:error

Conversation

guilhem commented Oct 28, 2022

Copy link
Copy Markdown

This error can be used in ConnectionFailedCallback to know error with error.Is().

This error can be used in ConnectionFailedCallback to know error with
error.Is().
Comment thread server.go
"session": DefaultSessionHandler,
}

var ErrPermissionDenied = errors.New("permission denied")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This could be in a single var statement with all error types.

gustavosbarreto commented Dec 21, 2022
edited
Loading

Copy link
Copy Markdown
Collaborator

@guilhem Could you please write a test case for these error type?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL