1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

orm: fix column == var; limit 1; vweb: @footer

This commit is contained in:
Alexander Medvednikov
2020-06-22 16:52:03 +02:00
parent 73296e486a
commit deb09d95b0
8 changed files with 85 additions and 9 deletions

View File

@ -9,6 +9,7 @@ import os
// / customizing the look & feel of the assertions results easier,
// / since it is done in normal V code, instead of in embedded C ...
// //////////////////////////////////////////////////////////////////
// TODO copy pasta builtin.v fn ___print_assert_failure
fn cb_assertion_failed(i &VAssertMetaInfo) {
// color_on := term.can_show_color_on_stderr()
use_relative_paths := match os.getenv('VERROR_PATHS') {
@ -25,7 +26,12 @@ fn cb_assertion_failed(i &VAssertMetaInfo) {
eprintln('Source : ${i.src}')
if i.op.len > 0 && i.op != 'call' {
eprintln(' left value: ${i.llabel} = ${i.lvalue}')
eprintln(' right value: ${i.rlabel} = ${i.rvalue}')
if i.rlabel == i.rvalue {
eprintln(' right value: $i.rlabel')
}
else {
eprintln(' right value: ${i.rlabel} = ${i.rvalue}')
}
}
}