all: update repo to use the new error handling syntax (#8950)

This commit is contained in:
spaceface 2021-02-28 21:20:21 +01:00 committed by GitHub
parent b9a381f101
commit d63b7bc35a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
135 changed files with 487 additions and 468 deletions

View file

@ -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')