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.
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.
slack-ruby-bot-server/lib/slack-ruby-bot-server/api/endpoints/teams_endpoint.rb
Line 95 in 99e91ed
instance.on :error.