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

compiler: show last 200 lines in partial output

This commit is contained in:
vitalyster 2020-01-17 16:09:37 +03:00 committed by Alexander Medvednikov
parent ddc04979a4
commit 436603aa44

View File

@ -339,7 +339,7 @@ start:
println(res.output)
}
else {
partial_output := res.output.limit(200).trim_right('\r\n')
partial_output := res.output[res.output.len-200..res.output.len].trim_right('\r\n')
print(partial_output)
if res.output.len > partial_output.len {
println('...\n(Use `v -g` to print the entire error message)\n')