crypto: add custom errors to crypto lib (#9522)

This commit is contained in:
Atakan Yenel 2021-03-30 14:27:57 +02:00 committed by GitHub
parent ab6e0ed0b3
commit 70b189d751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 8 deletions

View file

@ -4,6 +4,7 @@
module rand
const (
read_error = error('crypto.rand.read() error reading random bytes')
)
struct ReadError {
msg string = 'crypto.rand.read() error reading random bytes'
code int
}