mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
crypto: add custom errors to crypto lib (#9522)
This commit is contained in:
parent
ab6e0ed0b3
commit
70b189d751
5 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue