From b778db24a73231d3129f8bb1ee0181d3e4379d99 Mon Sep 17 00:00:00 2001
From: George Goldberg <george@gberg.me>
Date: Tue, 17 Jan 2017 14:05:11 +0000
Subject: PLT-5210: Unify errors for invalid invite. (#5090)

Now shows the same error regardless of whether the user is logged in or
logged out.
---
 webapp/components/signup/signup_controller.jsx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'webapp/components/signup/signup_controller.jsx')

diff --git a/webapp/components/signup/signup_controller.jsx b/webapp/components/signup/signup_controller.jsx
index 9bf5936be..ee53f6b67 100644
--- a/webapp/components/signup/signup_controller.jsx
+++ b/webapp/components/signup/signup_controller.jsx
@@ -79,11 +79,16 @@ export default class SignupController extends React.Component {
                             }
                         );
                     },
-                    (e) => {
+                    () => {
                         this.setState({ // eslint-disable-line react/no-did-mount-set-state
                             noOpenServerError: true,
                             loading: false,
-                            serverError: e.message
+                            serverError: (
+                                <FormattedMessage
+                                    id='signup_user_completed.invalid_invite'
+                                    defaultMessage='The invite link was invalid.  Please speak with your Administrator to receive an invitation.'
+                                />
+                            )
                         });
                     }
                 );
-- 
cgit v1.2.3-1-g7c22

