ci: fix toml segfault (remove unused low level builtin option IError.msg compatibility hack)
parent
e64c8cce62
commit
382586da6d
|
@ -27,15 +27,11 @@ pub fn (err IError) str() string {
|
||||||
else {
|
else {
|
||||||
// >> Hack to allow old style custom error implementations
|
// >> Hack to allow old style custom error implementations
|
||||||
// TODO: remove once deprecation period for `IError` methods has ended
|
// 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
|
// 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()'
|
'$err.type_name(): $err.msg()'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Error is the empty default implementation of `IError`.
|
// Error is the empty default implementation of `IError`.
|
||||||
|
|
Loading…
Reference in New Issue