mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
msvc: check exit code
This commit is contained in:

committed by
Alexander Medvednikov

parent
287a53ee39
commit
5124eae47d
@ -408,10 +408,13 @@ pub fn (v mut V) cc_msvc() {
|
||||
|
||||
// println('$cmd')
|
||||
|
||||
_ := os.exec(cmd) or {
|
||||
res := os.exec(cmd) or {
|
||||
println(err)
|
||||
panic('msvc error')
|
||||
}
|
||||
if res.exit_code != 0 {
|
||||
panic(res.output)
|
||||
}
|
||||
// println(res)
|
||||
// println('C OUTPUT:')
|
||||
|
||||
|
Reference in New Issue
Block a user