From ad4943568c97c753415e1c28c9edc1771adcaa39 Mon Sep 17 00:00:00 2001 From: "ian%hixie.ch" Date: Mon, 17 Sep 2001 00:13:16 +0000 Subject: [PATCH] Fixed error messages to be more accurate. --- webtools/PLIF/PLIF/Service/UserFieldFactory.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webtools/PLIF/PLIF/Service/UserFieldFactory.pm b/webtools/PLIF/PLIF/Service/UserFieldFactory.pm index 616062be90e6..7d862b093c3b 100644 --- a/webtools/PLIF/PLIF/Service/UserFieldFactory.pm +++ b/webtools/PLIF/PLIF/Service/UserFieldFactory.pm @@ -53,9 +53,9 @@ sub createFieldByID { my $self = shift; my($app, $user, $fieldID, $fieldData) = @_; my($type, @data) = $app->getService('dataSource.user')->getFieldByID($app, $fieldID); - $app->assert(defined($type), 1, "Database contains a user with a field ID '$fieldID' but that field ID is not defined"); + $app->assert(defined($type), 1, "Tried to create a field with ID '$fieldID' but that field ID is not defined"); my $field = $app->getServiceInstance("user.field.$type", $user, @data, $fieldData); - $app->assert(defined($field), 1, "Database contains a field of type '$type' but there is no service providing that type"); + $app->assert(defined($field), 1, "Tried to create a field of type '$type' but there is no service providing that type"); return $field; } @@ -66,9 +66,9 @@ sub createFieldByName { # fieldData is likely to be undefined, as the field is unlikely to # exist for this user. my($type, @data) = $app->getService('dataSource.user')->getFieldByName($app, $fieldCategory, $fieldName); - $app->assert(defined($type), 1, "Database contains a user with a field name '$fieldCategory.$fieldName' but that field is not defined"); + $app->assert(defined($type), 1, "Tried to create a field with name '$fieldCategory.$fieldName' but that field is not defined"); my $field = $app->getServiceInstance("user.field.$type", $user, @data, $fieldData); - $app->assert(defined($field), 1, "Database contains a field of type '$type' but there is no service providing that type"); + $app->assert(defined($field), 1, "Tried to create a field of type '$type' but there is no service providing that type"); return $field; }