go_pgp/PGPError.go
2024-05-10 22:24:14 +02:00

16 lines
280 B
Go

package go_pgp
const pgpErrorPrefix = "failed to verify PGP signature: "
type PGPError struct {
InternalError error
}
func (err *PGPError) Error() string {
return pgpErrorPrefix + err.InternalError.Error()
}
func (err *PGPError) Unwrap() error {
return err.InternalError
}