1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v up: update os.chdir call to handle error (#11328)

This commit is contained in:
Steve Phillips 2021-08-28 02:34:10 -07:00 committed by GitHub
parent e90a624738
commit 8a49a06201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ fn new_app() App {
fn main() {
app := new_app()
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...')
app.update_from_master()
v_hash := version.githash(false)