-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue/499' of github.com:developerfred/mailchain into i…
…ssue/499
- Loading branch information
Showing
3 changed files
with
24 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
package cipher | ||
|
||
import ( | ||
"github.com/pkg/errors" | ||
) | ||
|
||
// ErrEncrypt returns the error message if encryption failed | ||
// | ||
func ErrEncrypt() error { | ||
return errors.New("cipher: encryption failed") | ||
} | ||
import "errors" | ||
|
||
// ErrDecrypt returns the error message if decryption failed | ||
// | ||
func ErrDecrypt() error { | ||
return errors.New("cipher: decryption failed") | ||
} | ||
var ( | ||
// ErrEncrypt returns the error message if encryption failed | ||
// | ||
ErrEncrypt = errors.New("cipher: encryption failed") //nolint:gochecknoglobals | ||
// ErrDecrypt returns the error message if decryption failed | ||
// | ||
ErrDecrypt = errors.New("cipher: decryption failed") //nolint:gochecknoglobals | ||
) |