mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01)
This commit is contained in:
@@ -13,14 +13,14 @@ mkdir('v_script_dir') ?
|
||||
|
||||
println("\nEntering into v_script_dir and listing it's files.")
|
||||
chdir('v_script_dir') ?
|
||||
files := ls('.') or { panic(err.msg) }
|
||||
files := ls('.') or { panic(err) }
|
||||
println(files)
|
||||
|
||||
println('\nCreating foo.txt')
|
||||
create('foo.txt') ?
|
||||
|
||||
println('\nFiles:')
|
||||
again_ls := ls('.') or { panic(err.msg) }
|
||||
again_ls := ls('.') or { panic(err) }
|
||||
println(again_ls)
|
||||
|
||||
println('\nRemoving foo.txt and v_script_dir')
|
||||
|
Reference in New Issue
Block a user