Author: igorz
Date: 2008-01-30 05:19:13 -0500 (Wed, 30 Jan 2008)
New Revision: 94365
Modified:
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Security/DerbyRoleProvider.cs
Log:
fix error messages
Modified:
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Security/DerbyRoleProvider.cs
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Security/DerbyRoleProvider.cs
2008-01-30 09:45:26 UTC (rev 94364)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Security/DerbyRoleProvider.cs
2008-01-30 10:19:13 UTC (rev 94365)
@@ -163,7 +163,7 @@
int returnValue =
DerbyRolesHelper.UsersInRoles_FindUsersInRole (connection, applicationName,
roleName, usernameToMatch, out reader);
if (returnValue == 2)
- throw new ProviderException ("roleName
was not found in the database");
+ throw new ProviderException ("The role
'" + roleName + "' was not found.");
using (reader) {
if (reader == null)
@@ -234,7 +234,7 @@
int returnValue =
DerbyRolesHelper.UsersInRoles_GetUsersInRoles (connection, applicationName,
rolename, out reader);
if (returnValue == 2)
- throw new ProviderException ("rolename
was not found in the database");
+ throw new ProviderException ("The role
'" + rolename + "' was not found.");
using (reader) {
if (reader == null)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches