I tried using the following pattern to get the script path, line number, and error:
local script,line,error = message:match("(.+):(%d+): (.+)")
And then to format it into a table I did the following:
local contents = {script = script, line = line, error = error}
However, I'm unsure of whether or not this method works properly, because it neither spit out an error nor worked correctly when trying to use the information. I added prints and the problem definitely revolves with this code. Can anyone please provide an alternative method?
