mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix toml segfault (remove unused low level builtin option IError.msg compatibility hack)
This commit is contained in:
parent
e64c8cce62
commit
382586da6d
@ -27,13 +27,9 @@ pub fn (err IError) str() string {
|
||||
else {
|
||||
// >> Hack to allow old style custom error implementations
|
||||
// TODO: remove once deprecation period for `IError` methods has ended
|
||||
old_error_style := unsafe { voidptr(&err.msg) != voidptr(&err.code) } // if fields are not defined (new style) they don't have an offset between
|
||||
if old_error_style {
|
||||
'$err.type_name(): $err.msg'
|
||||
} else {
|
||||
// <<
|
||||
'$err.type_name(): $err.msg()'
|
||||
}
|
||||
// old_error_style := unsafe { voidptr(&err.msg) != voidptr(&err.code) } // if fields are not defined (new style) they don't have an offset between
|
||||
// <<
|
||||
'$err.type_name(): $err.msg()'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user