mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: mkdir() error handling
This commit is contained in:
committed by
Alexander Medvednikov
parent
0fb0c43c0a
commit
3a6ccf7f31
@@ -103,7 +103,7 @@ fn (am mut AssetManager) combine(asset_type string, to_file bool) string {
|
||||
return out
|
||||
}
|
||||
if !os.dir_exists(am.cache_dir) {
|
||||
os.mkdir(am.cache_dir)
|
||||
os.mkdir(am.cache_dir) or { panic(err) }
|
||||
}
|
||||
file := os.create(out_file) or {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user