Skip to content

Commit c97c7d8

Browse files
committed
Update messages for consistency in SocialProvider
1 parent 292106e commit c97c7d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/Http/Controllers/SocialProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ public function callback(string $provider): RedirectResponse
5959
$socialAccountByEmail = Social::getUserBySocialAccoutEmail($provider, $socialite->email);
6060

6161
if ($socialAccountByEmail->first()) {
62-
throw new Exception('Can\'t unlink social account with different email address');
62+
throw new Exception('Can\'t unlink social account with different email address.');
6363
}
6464

6565
$socialAccontsByUserId = Social::getUserBySocialUserId($provider, $this->user->id);
6666

6767
if ($socialAccontsByUserId->first()) {
68-
throw new Exception('Can\'t unlink social account with different email address');
68+
throw new Exception('Can\'t unlink social account with different email address.');
6969
}
7070

7171
$socialData = [
@@ -128,7 +128,7 @@ public function callback(string $provider): RedirectResponse
128128
return $this->redirectBack();
129129
}
130130

131-
throw new Exception('Your ' . $provider . " account isn't connected to your profile yet");
131+
throw new Exception('Your ' . $provider . " account isn't connected to your profile yet.");
132132
} catch (Exception $error) {
133133
Session::flash('error', $error->getMessage());
134134

0 commit comments

Comments
 (0)