mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: change IError msg
and code
to methods + fix vlib, add a deprecation notice for the old usages (#13041)
This commit is contained in:
@@ -55,7 +55,7 @@ pub fn new_scanner(config Config) ?&Scanner {
|
||||
if os.is_file(file_path) {
|
||||
text = os.read_file(file_path) or {
|
||||
return error(@MOD + '.' + @STRUCT + '.' + @FN +
|
||||
' Could not read "$file_path": "$err.msg"')
|
||||
' Could not read "$file_path": "$err.msg()"')
|
||||
}
|
||||
}
|
||||
mut s := &Scanner{
|
||||
|
Reference in New Issue
Block a user