Implement fatal error message box

Used when lite-xl fails at startup
This commit is contained in:
Francesco Abbate
2021-03-05 10:33:50 +01:00
parent 636bc7ec95
commit a4bc8986ff
3 changed files with 33 additions and 3 deletions
+1 -1
View File
@@ -406,7 +406,7 @@ function core.init()
end
project_dir_abs = system.absolute_path(".")
if not core.set_project_dir(project_dir_abs) then
print("internal error: cannot set project directory to cwd")
system.show_fatal_error("Lite XL internal error", "cannot set project directory to cwd")
os.exit(1)
end
end