diff --git a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Actions/SignOut/ShowHostedUISignOut.swift b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Actions/SignOut/ShowHostedUISignOut.swift index c941a210d5..ccf6bd24bc 100644 --- a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Actions/SignOut/ShowHostedUISignOut.swift +++ b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Actions/SignOut/ShowHostedUISignOut.swift @@ -63,7 +63,10 @@ class ShowHostedUISignOut: NSObject, Action { event = getEvent(for: AWSCognitoHostedUIError(error: error.authError)) } else if let error = error { let serviceError = AuthError.service( - "HostedUI failed with error", "", error) + "HostedUI failed with error", + "", + error + ) event = getEvent(for: AWSCognitoHostedUIError(error: serviceError)) } else { event = getEvent(for: nil)