mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix: fix error messages
This commit is contained in:
parent
f5b8f34a05
commit
cf6aa16ee4
@ -513,7 +513,7 @@ 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 doesnt exist')
|
||||
panic('$dir doesn\'t exist')
|
||||
}
|
||||
if c.is_verbose {
|
||||
println('v_files_from_dir ("$dir")')
|
||||
|
@ -26,7 +26,7 @@ const (
|
||||
|
||||
fn new_scanner(file_path string) *Scanner {
|
||||
if !os.file_exists(file_path) {
|
||||
panic('"$file_path" doesnt exist')
|
||||
panic('"$file_path" doesn\'t exist')
|
||||
}
|
||||
scanner := &Scanner {
|
||||
file_path: file_path
|
||||
|
@ -519,7 +519,7 @@ fn (p mut Parser) satisfies_interface(interface_name, _typ string, throw bool) b
|
||||
for method in int_typ.methods {
|
||||
if !typ.has_method(method.name) {
|
||||
// if throw {
|
||||
p.error('Type "$_typ" doesnt satisfy interface "$interface_name" (method "$method.name" is not implemented)')
|
||||
p.error('Type "$_typ" doesn\'t satisfy interface "$interface_name" (method "$method.name" is not implemented)')
|
||||
// }
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user