More error checking on Jabber, also presents error message to user if service addition fails

This commit is contained in:
2010-03-23 13:37:31 +00:00
parent 83ca536653
commit 84191f24e8
4 changed files with 29 additions and 7 deletions

View File

@@ -130,6 +130,8 @@ def service_add(request):
acc.save()
except ExistingUser:
error = "User by this name already exists, your account has not been created"
except ServiceError:
error = "A error occured while trying to create the Service Account, please try again later"
else:
error = None