Commit Graph

7 Commits

Author SHA1 Message Date
Nicola Murino 08880975fb statusFromError: improve support for error wrapping 2022-12-25 17:21:42 +01:00
codesoap 90ae4b588c Check for two more errors in tests 2021-08-20 21:27:27 +02:00
Sebastien Rosset (serosset) 3b8042dfc0 Use go errors instead of github.com/pkg/errors 2021-06-04 14:18:41 -07:00
Cassondra Foesch 861a8eaf5c pointer receivers and statusFromError(uint32, error) 2021-02-22 12:11:42 +00:00
Fazlul Shahriar 6120cae121
Fix build on Plan 9
All test are passing on Plan 9, and I've also verified
`examples/go-sftp-server` is working.
2020-09-10 18:18:22 -04:00
Nicola Murino 429ee173fb make SFTP extensions configurable 2019-11-11 18:04:56 +01:00
John Eikenberry c732bf9952 add method to get fxerr value for StatusError code
Need to get StatusError.Code (uint32) converted to fxerr type so you can
compare it to public (exported) ErrSSHFx[..] error types. This adds a
new method, FxCode(), to the StatusError objects to handle this case.

Did this vs trying to change types of existing fields to not break
backwards compatibility.
2019-10-13 19:18:35 -07:00