Commits

Jason McKesson committed bf74126

Better error handling when loading UserStyles.lua.

  • Participants
  • Parent commits 8f7da7a
  • Branches 2.0

Comments (0)

Files changed (1)

modules/Styles.lua

 			style_registry[styleName] = style
 		end
 	end
+else
+	if(not status) then
+		--Error out, but only if the file is there found.
+		local lfs = require "lfs"
+		if(lfs and lfs.attributes("modules/UserStyles.lua", "mode") == "file") then
+			error(userStyles);
+		end
+	end
 end
 
 local function GetStyleList()