mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: add execute_or_exit(cmd), use it consistently instead of execute_or_panic(cmd)
This commit is contained in:
@ -32,7 +32,7 @@ fn main() {
|
||||
}
|
||||
|
||||
fn compile(vroot string, cmd string) {
|
||||
result := os.execute_or_panic(cmd)
|
||||
result := os.execute_or_exit(cmd)
|
||||
if result.exit_code != 0 {
|
||||
eprintln('cannot compile to `$vroot`: \n$result.output')
|
||||
exit(1)
|
||||
|
Reference in New Issue
Block a user