compiler: show last 200 lines in partial output

pull/3483/head
vitalyster 2020-01-17 16:09:37 +03:00 committed by Alexander Medvednikov
parent ddc04979a4
commit 436603aa44
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ start:
println(res.output) println(res.output)
} }
else { 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) print(partial_output)
if res.output.len > partial_output.len { if res.output.len > partial_output.len {
println('...\n(Use `v -g` to print the entire error message)\n') println('...\n(Use `v -g` to print the entire error message)\n')