mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: use cerror instead of panic.
This commit is contained in:

committed by
Alexander Medvednikov

parent
32683ad6fd
commit
83954acfd4
@@ -164,7 +164,7 @@ fn (v &V) find_module_path(mod string) string {
|
||||
if !os.dir_exists(import_path) {
|
||||
import_path = '$ModPath/$mod_path'
|
||||
if !os.dir_exists(import_path){
|
||||
panic('module "$mod" not found')
|
||||
cerror('module "$mod" not found')
|
||||
}
|
||||
}
|
||||
return import_path
|
||||
|
Reference in New Issue
Block a user