1
0
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:
Ulises Jeremias Cornejo Fandos
2021-04-16 05:54:28 -03:00
committed by GitHub
parent aa49bc2708
commit 524becd523
6 changed files with 51 additions and 17 deletions

12
vlib/context/err.v Normal file
View File

@ -0,0 +1,12 @@
module context
const none_ = IError(&None{})
struct None {
msg string
code int
}
fn (_ None) str() string {
return 'none'
}