v up: update os.chdir call to handle error (#11328)
parent
e90a624738
commit
8a49a06201
|
@ -26,7 +26,7 @@ fn new_app() App {
|
||||||
fn main() {
|
fn main() {
|
||||||
app := new_app()
|
app := new_app()
|
||||||
recompilation.must_be_enabled(app.vroot, 'Please install V from source, to use `v up` .')
|
recompilation.must_be_enabled(app.vroot, 'Please install V from source, to use `v up` .')
|
||||||
os.chdir(app.vroot)
|
os.chdir(app.vroot) ?
|
||||||
println('Updating V...')
|
println('Updating V...')
|
||||||
app.update_from_master()
|
app.update_from_master()
|
||||||
v_hash := version.githash(false)
|
v_hash := version.githash(false)
|
||||||
|
|
Loading…
Reference in New Issue