lib/authing_ruby/management/ManagementClient.rb in authing_ruby-1.0.8 vs lib/authing_ruby/management/ManagementClient.rb in authing_ruby-1.0.9

- old
+ new

@@ -15,10 +15,10 @@ @appId = options.fetch(:appId, nil) @host = options.fetch(:host, nil) @accessToken = options.fetch(:accessToken, nil) if @userPoolId == nil && @appId == nil - throw '请提供 userPoolId 或 appId!' + raise '请提供 userPoolId 或 appId!' end graphqlApiEndpointV2 = "#{@host}/graphql/v2" @graphqlClient = AuthingRuby::Common::GraphqlClient.new(graphqlApiEndpointV2, options) @tokenProvider = AuthingRuby::ManagementTokenProvider.new(options, @graphqlClient) \ No newline at end of file