mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: bring back panic(err.msg)
-> panic(err)
(#9022)
This commit is contained in:
@ -27,12 +27,12 @@ fn main() {
|
||||
// The user just wants an independent copy of v, and so we are done.
|
||||
return
|
||||
}
|
||||
backup_old_version_and_rename_newer() or { panic(err.msg) }
|
||||
backup_old_version_and_rename_newer() or { panic(err) }
|
||||
println('V built successfully!')
|
||||
}
|
||||
|
||||
fn compile(vroot string, cmd string) {
|
||||
result := os.exec(cmd) or { panic(err.msg) }
|
||||
result := os.exec(cmd) or { panic(err) }
|
||||
if result.exit_code != 0 {
|
||||
eprintln('cannot compile to `$vroot`: \n$result.output')
|
||||
exit(1)
|
||||
@ -76,7 +76,7 @@ fn backup_old_version_and_rename_newer() ?bool {
|
||||
os.rm(v_file) or { }
|
||||
|
||||
list_folder('', 'moving $v2_file to $v_file ...')
|
||||
os.mv_by_cp(v2_file, v_file) or { panic(err.msg) }
|
||||
os.mv_by_cp(v2_file, v_file) or { panic(err) }
|
||||
|
||||
list_folder('after:', '')
|
||||
|
||||
|
Reference in New Issue
Block a user