Skip to content

unhandledExceptionHook does not work #15627

Open
@dom96

Description

@dom96

I have tested unhandledExceptionHook with --os:any and all of the different --exception options. From what I could see it never gets called, for --exceptions:goto I can see that nimTestErrorFlag is in the code (and it calls the hook) but I don't see anywhere in my code where nimTestErrorFlag is being called.

In addition to this, there is also a similar hook called onUnhandledException, I have tried it too and it also does not work. The only hooks that work are the globalRaiseHook but it would be nice to get something that only gets triggered when the exception is unhandled.

Additional Information

$ nim -v
Nim Compiler Version 1.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions