소스 검색

Improve error message in lv-config file (#922)

hui.liu 4 년 전
부모
커밋
75b5cc4d9f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      init.lua

+ 2 - 1
init.lua

@@ -1,8 +1,9 @@
 require "default-config"
 require "keymappings"
-local status_ok, _ = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/lv-config.lua")
+local status_ok, error = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/lv-config.lua")
 if not status_ok then
   print "something is wrong with your lv-config"
+  print(error)
 end
 require "plugins"
 vim.g.colors_name = O.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.