Skip to content

Throws a Runtime Error if team is already regstered. #139

@amar-sharma

Description

@amar-sharma

02:09:59 web.1 | E, [2021-05-30T02:09:59.774355 #15140] ERROR -- : RuntimeError: Team Enlite is already registered. 02:09:59 web.1 | F:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/slack-ruby-bot-server-1.2.0/lib/slack-ruby-bot-server/api/endpoints/teams_endpoint.rb:95:in 'block (2 levels) in <class:TeamsEndpoint>'

If I want to let users re install the app with custom parameter, it can't handle that, the flow just crashes.

raise "Team #{team.name} is already registered." if team.active?
Shouldn't throw an error and let developer handle it in instance.on :error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions