mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
context: use IError
instead of string
(#9758)
This commit is contained in:

committed by
GitHub

parent
aa49bc2708
commit
524becd523
12
vlib/context/err.v
Normal file
12
vlib/context/err.v
Normal file
@ -0,0 +1,12 @@
|
||||
module context
|
||||
|
||||
const none_ = IError(&None{})
|
||||
|
||||
struct None {
|
||||
msg string
|
||||
code int
|
||||
}
|
||||
|
||||
fn (_ None) str() string {
|
||||
return 'none'
|
||||
}
|
Reference in New Issue
Block a user