From fd440916a87749ecedcb5c7f337a1dbd05040207 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Mon, 24 Aug 2015 17:52:12 -0700 Subject: [PATCH] add descriptive message to failed account linking attempt --- server/boot/a-extendUserIdent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/boot/a-extendUserIdent.js b/server/boot/a-extendUserIdent.js index 7114e1b53f..d14874d08b 100644 --- a/server/boot/a-extendUserIdent.js +++ b/server/boot/a-extendUserIdent.js @@ -49,7 +49,7 @@ export default function({ models }) { } if (identity.userId.toString() !== userId.toString()) { return Observable.throw( - new Error('An account is already linked to that profile') + new Error("It looks like you already have an account associated with that sign in method. Here's what you can do: 1) Sign out of this account. 2) Use that sign in method to sign into your other account. 3) Delete that account. 4) Then sign back into this account and you'll be able to link it here. If you need help, send us an email at team@freecodecamp.com.") ); } identity.credentials = credentials;