ECOM-1644 minor message updation.

This commit is contained in:
Awais
2015-06-10 22:08:23 +05:00
parent a3976705ed
commit d5ca25e197
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class CourseAccessRoleForm(forms.ModelForm):
try:
course_key = CourseKey.from_string(course_id)
except InvalidKeyError:
raise forms.ValidationError(u"Cannot make a valid CourseKey from id {}!".format(course_id))
raise forms.ValidationError(u"Invalid CourseID. Please check the format and re-try.")
if not modulestore().has_course(course_key):
raise forms.ValidationError(u"Cannot find course with id {} in the modulestore".format(course_id))
@@ -72,7 +72,7 @@ class CourseAccessRoleForm(forms.ModelForm):
user = User.objects.get(email=email)
except Exception:
raise forms.ValidationError(
u"Email not exists. Could not find user by email address {email}.".format(
u"Email does not exist. Could not find {email}. Please re-enter email address".format(
email=email
)
)

View File

@@ -122,7 +122,7 @@ class AdminCourseRolesPageTest(ModuleStoreTestCase):
self.assertContains(
response,
"Email not exists. Could not find user by email address {}".format(
"Email does not exist. Could not find {}. Please re-enter email address".format(
email
)
)