Skip to content

Commit 16f9322

Browse files
corrected error throw in case of incorrect auth type for MLE
1 parent 608f19d commit 16f9322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AuthenticationSDK/core/MerchantConfig.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def validateMLEConfiguration
266266
if mle_configured && !Constants::AUTH_TYPE_JWT.eql?(@authenticationType)
267267
err = StandardError.new(Constants::ERROR_PREFIX + "MLE can only be used with JWT authentication")
268268
@log_obj.logger.error(ExceptionHandler.new.new_api_exception err)
269-
raise
269+
raise err
270270
end
271271
end
272272

0 commit comments

Comments
 (0)