Skip to content

[TRI-1377] Throwing a string from inside runTask doesn't bubble up properly to the run #582

Description

@matt-aitken

If you do this inside of run, the run fails (which is correct) but you get "Unknown error" on the run.

await io.runTask(
    "a-task",
    async () => {
       throw "Shopify Order not found";
    },
);

It works properly if you do throw new Error("Shopify Order not found");

TRI-1377

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions