albertodemichelis / squirrel

Official repository for the programming language Squirrel
http://www.squirrel-lang.org
MIT License
894 stars 148 forks source link

Flush stdout before output errors #245

Open mingodad opened 2 years ago

mingodad commented 2 years ago

It seems that if we flush stdout before output errors we can have a better idea of where in the script processing flow the error happened, actually when there is an error and the script is outputting to stdout the error message get mixed in the middle of the stdout output but if we flush the stdout then the error message appears after the last stdout output.

Here is a commit that do that for squilu https://github.com/mingodad/squilu/commit/0d1c96d67fd9810244083c96f452a8ab4679bcee