mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
crypto: add custom errors to crypto lib (#9522)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user