Skip to content

Commit

Permalink
main.v: checking directory before trying to fetch files in said direc…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
Henrixounez authored and medvednikov committed Jun 23, 2019
1 parent 6bb8e75 commit f1cd358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/main.v
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,10 @@ mut args := ''
fn (c &V) v_files_from_dir(dir string) []string {
mut res := []string
mut files := os.ls(dir)
if !os.file_exists(dir) {
panic('$dir doesn\'t exist')
}
mut files := os.ls(dir)
if c.is_verbose {
println('v_files_from_dir ("$dir")')
}
Expand Down

0 comments on commit f1cd358

Please sign in to comment.