Commit d5ca25e1 by Awais

ECOM-1644 minor message updation.

parent a3976705
......@@ -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
)
)
......
......@@ -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
)
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment