diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-10-02 20:56:48 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-10-02 20:56:48 -0400 |
commit | 29e54d24e0759693c1fb42a3dafbc7fe29a9d3a7 (patch) | |
tree | 36ced1a84d442240f774ef4a4fb3d6b1517e582b | |
parent | 22741c27efe4236079c4ddf557ae3530bf3f5ed3 (diff) |
Show user-init error messages in a dialog to prevent crashing; init.lua
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,5 +10,5 @@ local so = not WIN32 and '/?.so;' or '/?.dll;' package.cpath = _USERHOME..so.._USERHOME..'/modules'..so..package.cpath textadept = require('textadept') -local ok, err = pcall(dofile, _USERHOME..'/init.lua') -if not ok and lfs.attributes(_USERHOME..'/init.lua') then ui.print(err) end +local user_init = _USERHOME..'/init.lua' +if lfs.attributes(user_init) then dofile(user_init) end |