Skip to content

Do not os.Exit #174

@cyrilc-pro

Description

@cyrilc-pro

I can see several calls to os.Exit (e.g. in webhooks.go when marshalling a JSON payload). os.Exit should never be called for this library to be usable in a server.

Possible fixes:

  • Let the error bubble up (preferred, in my opinion)
  • Use panic instead of os.Exit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions