16 lines
280 B
Go
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
|
|
}
|