Index: main/waeup.kofa/trunk/src/waeup/kofa/students/student.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/student.py	(revision 13201)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/student.py	(revision 13224)
@@ -486,4 +486,8 @@
     # update CSV files
     update_student_deletion_csvs(student, del_dir)
+
+    # remove global role
+    role_manager = IPrincipalRoleManager(grok.getSite())
+    role_manager.unsetRoleForPrincipal('waeup.Student', student.student_id)
     return
 
Index: main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py	(revision 13201)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py	(revision 13224)
@@ -560,5 +560,5 @@
             student.matric_number = matric_number
         except MatNumNotInSource:
-            return _('Matriculation number exists.'), None
+            return _('Matriculation number %s exists.' % matric_number), None
         notify(grok.ObjectModifiedEvent(student))
         self.increaseMatricInteger(student)
