mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: update repo to use the new error handling syntax (#8950)
This commit is contained in:
parent
b9a381f101
commit
d63b7bc35a
135 changed files with 487 additions and 468 deletions
|
@ -12,14 +12,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) }
|
||||
files := ls('.') or { panic(err.msg) }
|
||||
println(files)
|
||||
|
||||
println('\nCreating foo.txt')
|
||||
create('foo.txt')?
|
||||
|
||||
println('\nFiles:')
|
||||
again_ls := ls('.') or { panic(err) }
|
||||
again_ls := ls('.') or { panic(err.msg) }
|
||||
println(again_ls)
|
||||
|
||||
println('\nRemoving foo.txt and v_script_dir')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue