message: use uniform message reference format
parent
c653977c15
commit
b627bb933c
|
@ -21,7 +21,7 @@ fn main() {
|
||||||
if !result.output.contains('Permission denied') {
|
if !result.output.contains('Permission denied') {
|
||||||
err = '\n$result.output'
|
err = '\n$result.output'
|
||||||
}
|
}
|
||||||
eprintln('cannot compile to ‘$vroot: $err')
|
eprintln('cannot compile to `$vroot`: $err')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
if result.output.len > 0 {
|
if result.output.len > 0 {
|
||||||
|
|
|
@ -17,7 +17,7 @@ fn main() {
|
||||||
|
|
||||||
if git_result.exit_code != 0 {
|
if git_result.exit_code != 0 {
|
||||||
if git_result.output.contains('Permission denied') {
|
if git_result.output.contains('Permission denied') {
|
||||||
eprintln('have no access ‘$vroot: Permission denied')
|
eprintln('have no access `$vroot`: Permission denied')
|
||||||
} else {
|
} else {
|
||||||
eprintln(git_result.output)
|
eprintln(git_result.output)
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,8 @@ fn main() {
|
||||||
current_hash := util.githash(true)
|
current_hash := util.githash(true)
|
||||||
// println(v_hash)
|
// println(v_hash)
|
||||||
// println(current_hash)
|
// println(current_hash)
|
||||||
if v_hash == current_hash {
|
if v_hash == current_hash {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
$if windows {
|
$if windows {
|
||||||
|
|
|
@ -883,7 +883,7 @@ pub fn (mut c Checker) check_or_block(call_expr mut ast.CallExpr, ret_type table
|
||||||
if is_ret_used {
|
if is_ret_used {
|
||||||
if !c.is_last_or_block_stmt_valid(last_stmt) {
|
if !c.is_last_or_block_stmt_valid(last_stmt) {
|
||||||
expected_type_name := c.table.get_type_symbol(ret_type).name
|
expected_type_name := c.table.get_type_symbol(ret_type).name
|
||||||
c.error('last statement in the `or {}` block should return ‘$expected_type_name‘',
|
c.error('last statement in the `or {}` block should return `$expected_type_name`',
|
||||||
call_expr.pos)
|
call_expr.pos)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,9 +113,9 @@ pub fn (mut p Parser) expr(precedence int) ast.Expr {
|
||||||
} else if p.tok.kind == .name {
|
} else if p.tok.kind == .name {
|
||||||
p.next()
|
p.next()
|
||||||
lit := if p.tok.lit != '' { p.tok.lit } else { p.tok.kind.str() }
|
lit := if p.tok.lit != '' { p.tok.lit } else { p.tok.kind.str() }
|
||||||
p.error('unexpected ‘$lit‘, expecting ‘:‘')
|
p.error('unexpected `$lit`, expecting `:`')
|
||||||
} else {
|
} else {
|
||||||
p.error('unexpected ‘$p.tok.lit‘, expecting struct key')
|
p.error('unexpected `$p.tok.lit`, expecting struct key')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p.check(.rcbr)
|
p.check(.rcbr)
|
||||||
|
|
|
@ -150,7 +150,7 @@ pub fn launch_tool(is_verbose bool, tool_name string) {
|
||||||
if !tool_compilation.output.contains('Permission denied') {
|
if !tool_compilation.output.contains('Permission denied') {
|
||||||
err = '\n$tool_compilation.output'
|
err = '\n$tool_compilation.output'
|
||||||
}
|
}
|
||||||
eprintln('cannot compile ‘$tool_source: $err‘')
|
eprintln('cannot compile `$tool_source`: $err')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue