mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
all: bring back panic(err.msg)
-> panic(err)
(#9022)
This commit is contained in:
parent
ce115dcbe0
commit
b712af56fd
110 changed files with 383 additions and 387 deletions
|
@ -3,7 +3,7 @@ import io
|
|||
|
||||
fn read_file(file string, cap int) []string {
|
||||
mut lines := []string{}
|
||||
mut f := os.open(file) or { panic(err.msg) }
|
||||
mut f := os.open(file) or { panic(err) }
|
||||
defer {
|
||||
f.close()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue