mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
compiler: improve error handling for 'v install'
This commit is contained in:
parent
d373b331fa
commit
f013359a44
2 changed files with 27 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue