Skip to content

Error stack trace cuts off after every colon : #355

@GalaxinTM

Description

@GalaxinTM

Title explains the issue

Reproduction:

success, fail = pcall(error, "gurt: yo")
if not success then
    error("Caught error: " .. tostring(fail))
end

Output:

PS D:\Stuff\vscode\Lune\test> lune run "d:\Stuff\vscode\Lune\test\test.luau"
d:\Stuff\vscode\Lune\test\test:3: Caught error: gurt: yo
[Stack Begin]
    Script '[C]' - function 'error'
    Script 'd'
[Stack End]

Notice how there's Script 'd', which is supposed to show the full path of the script file

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions