File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/routes/projectMemberInvites Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,9 @@ module.exports = [
301
301
const members = req . context . currentProjectMembers ;
302
302
const projectId = _ . parseInt ( req . params . projectId ) ;
303
303
// check user handle exists in returned result
304
- const errorMessageHandleNotExist = 'User with such handle does not exist' ;
304
+ const errorMessageHandleNotExist = 'We couldn\'t find a user with the provided username. ' +
305
+ 'Please ensure that the username is accurate, including its letter casing. ' +
306
+ 'If you\'re still having trouble, double-check the spelling and try again.' ;
305
307
if ( ! ! invite . handles && invite . handles . length > 0 ) {
306
308
const lowerCaseHandles = invite . handles . map ( handle => handle . toLowerCase ( ) ) ;
307
309
const existentHandles = _ . map ( inviteUsers , 'handleLower' ) ;
Original file line number Diff line number Diff line change @@ -655,7 +655,9 @@ describe.skip('Project Member Invite create', () => {
655
655
const resJson = res . body . failed [ 0 ] ;
656
656
should . exist ( resJson ) ;
657
657
resJson . handle . should . equal ( 'invalid_handle' ) ;
658
- resJson . message . should . equal ( 'User with such handle does not exist' ) ;
658
+ resJson . message . should . equal ( 'We couldn\'t find a user with the provided username. ' +
659
+ 'Please ensure that the username is accurate, including its letter casing. ' +
660
+ 'If you\'re still having trouble, double-check the spelling and try again.' ) ;
659
661
done ( ) ;
660
662
}
661
663
} ) ;
You can’t perform that action at this time.
0 commit comments