File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,6 @@ function META:ParseRootNode()
374374 end
375375
376376 if imported_index and imported_index ~= true then
377- error (" WTF" )
378377 self .RootStatement .imports = self .RootStatement .imports or {}
379378
380379 for _ , import in ipairs (imported_index .imports ) do
Original file line number Diff line number Diff line change @@ -239,22 +239,24 @@ do -- these override existing commands and should probably be made more generic
239239 }
240240 )
241241 )
242- local lua_code = c :Emit (
243- {
244- pretty_print = true ,
245- string_quote = " \" " ,
246- no_semicolon = true ,
247- omit_invalid_code = true ,
248- comment_type_annotations = true ,
249- type_annotations = true ,
250- force_parenthesis = true ,
251- module_encapsulation_method = " loadstring" ,
252- no_newlines = false ,
253- extra_indent = {
254- Start = {to = " Stop" },
255- Toggle = " toggle" ,
256- },
257- }
242+ local lua_code = assert (
243+ c :Emit (
244+ {
245+ pretty_print = true ,
246+ string_quote = " \" " ,
247+ no_semicolon = true ,
248+ omit_invalid_code = true ,
249+ comment_type_annotations = true ,
250+ type_annotations = true ,
251+ force_parenthesis = true ,
252+ module_encapsulation_method = " loadstring" ,
253+ no_newlines = false ,
254+ extra_indent = {
255+ Start = {to = " Stop" },
256+ Toggle = " toggle" ,
257+ },
258+ }
259+ )
258260 )
259261 lua_code = " _G.BUNDLE = true\n " .. lua_code
260262 lua_code = lua_code :gsub (" %#%!%/usr%/local%/bin%/luajit\n " , " \n " )
You can’t perform that action at this time.
0 commit comments