fix: fix error messages

pull/387/head
Yoshiya Hinosawa 2019-06-23 09:02:33 +09:00 committed by Alex Medvednikov
parent f5b8f34a05
commit cf6aa16ee4
3 changed files with 3 additions and 3 deletions

View File

@ -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")')

View File

@ -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

View File

@ -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
}