1
0
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:
Delyan Angelov
2019-08-18 17:57:57 +03:00
committed by Alexander Medvednikov
parent d373b331fa
commit f013359a44
2 changed files with 27 additions and 7 deletions

View File

@ -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
}