Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there any way to convert an error's text to a string?

1 answer

✓ Accepted answer

Errors cause the Error event in ScriptContext to fire.

game:GetService("ScriptContext").Error:connect(function(message, stacktrace, script)
	print("message",message)
	print("stacktrace",stacktrace)
	print("script",script)
end)

5 comments

0

Have you tested this? I'm in school at the moment.

0

Yes it works. Also note that if this is only in a server Script it will not catch errors in a client Localscript.

0

How can I convert this to trello?

0

I am unsure of how exactly trello handles their data. You'll have to find one of their developer/api pages for help.

0

Okay so here's what I did: local cardId = ap:AddCard("Error", message.." | "..stacktrace.." | ",script, listId) "Script" part is erroring.

This discussion is preserved as it was. New answers, comments, and votes are closed.