🎨 improve error log output format.

This commit is contained in:
ValKmjolnir
2022-09-02 02:04:03 +08:00
parent aa0023a23b
commit 5715c1df5f
6 changed files with 44 additions and 33 deletions
+1 -2
View File
@@ -723,8 +723,7 @@ void nasal_gc::ctxreserve()
// use to print error log and return error value
nas_ref nas_err(const string& err_f,const string& info)
{
std::cerr<<bold_cyan<<"[vm] "
<<bold_red<<err_f<<": "
std::cerr<<bold_red<<"[vm] "<<err_f<<": "
<<bold_white<<info<<"\n"
<<reset;
return {vm_none};