mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Display better error when invalid class code is entered
This commit is contained in:
parent
cad067fa8c
commit
5e6c9709f9
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ module.exports = class CoursesView extends RootView
|
|||
if jqxhr.status is 422
|
||||
@errorMessage = 'Please enter a code.'
|
||||
else if jqxhr.status is 404
|
||||
@errorMessage = 'Code not found.'
|
||||
@errorMessage = 'No class exists with this Class Code. Check your spelling or ask your teacher for help.'
|
||||
else
|
||||
@errorMessage = "#{jqxhr.responseText}"
|
||||
@renderSelectors '#join-class-form'
|
||||
|
|
Loading…
Reference in a new issue