Implement fatal error message box

Used when lite-xl fails at startup
This commit is contained in:
Francesco Abbate committed 2021-03-05 10:33:50 +01:00
1 parent 636bc7ec95
commit a4bc8986ff
3 files changed
+33 -3

No files matched your search

+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