"Error occurred, no output from Lua" Error?

I’m trying to make a module to ease the work for making cutscenes, but when I’m making a Local Output function, I found that it gave me this error while trying to run this function :
Screenshot 2024-09-08 185918

This is the code I wrote in case needed, this is written in a ModuleScript by the way

local function output(func, msg)
	func(((func == error() and "EasyCutscene Error :") or "EasyCutscene : ")..msg)
    -- This should've print or warn when called, but it just gave an error
end

And I ran the function for test purpose, this is the code :

if not v.Duration then -- This condition is achieved, as for test purpose
	output(error, tostring(
		"Duration not found in passed Dictionary (CutsceneInfo Section : "..i)
	)
end

It evantually gave me the “Error occurred, no output from Lua” Error, but why, and how do I fix this, can anyone explain? Any help is apperciated!

this happens when you call error() without any arguments, like you’re doing at func == error(), you need to remove the brackets: func == error

1 Like

Oh that’s correct, thx for the help! (Imao I’ve add brackets by mistake)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.