mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: improve error handling for 'v install'
This commit is contained in:

committed by
Alexander Medvednikov

parent
d373b331fa
commit
f013359a44
@ -141,13 +141,18 @@ fn main() {
|
||||
if true {
|
||||
//println('Building vget...')
|
||||
os.chdir(vroot + '/tools')
|
||||
_ := os.exec('$vexec -o $vget vget.v') or {
|
||||
vgetcompilation := os.exec('$vexec -o $vget vget.v') or {
|
||||
panic(err)
|
||||
}
|
||||
if vgetcompilation.exit_code != 0 {
|
||||
panic( vgetcompilation.output )
|
||||
}
|
||||
}
|
||||
|
||||
_ := os.exec('$vget ' + names.join(' ')) or {
|
||||
panic(err)
|
||||
vgetresult := os.exec('$vget ' + names.join(' ')) or {
|
||||
panic(err)
|
||||
}
|
||||
if vgetresult.exit_code != 0 {
|
||||
panic( vgetresult.output )
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user