Skip to content

ExtraScripts: Allow hooking on errors #5193

Open
@Lenart12

Description

@Lenart12

Like in the title, it would be useful in some cases to be able to run code in the case of errors, for example I want to do something before upload, and after - even if the upload fails. Afaik there is no way to fo this currently.

My idea would be to add two entry points:

# run after any error
env.AddPostAction('error', ...)
# or run after specific error
env.AddErrorAction('upload', ...)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions