From cf6aa16ee4a72c30e38d3c8f86e8817cd2a56936 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sun, 23 Jun 2019 09:02:33 +0900 Subject: [PATCH] fix: fix error messages --- compiler/main.v | 2 +- compiler/scanner.v | 2 +- compiler/table.v | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/main.v b/compiler/main.v index 31dea33eb3..0d4b132154 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -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")') diff --git a/compiler/scanner.v b/compiler/scanner.v index 6244e4d197..9c6ea0d5a1 100644 --- a/compiler/scanner.v +++ b/compiler/scanner.v @@ -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 diff --git a/compiler/table.v b/compiler/table.v index b789724327..ac0710c7d3 100644 --- a/compiler/table.v +++ b/compiler/table.v @@ -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 }