Made the error message printed when no string expander can be found more explicit (it now mentions the name and type of the string).

This commit is contained in:
ian%hixie.ch 2001-09-09 19:08:58 +00:00
Родитель 2d98944b83
Коммит 8a6d55c4de
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -126,7 +126,7 @@ sub getString {
my $expander = $self->app->getService("string.expander.named.$name");
if (not defined($expander)) {
$expander = $self->app->getService("string.expander.$type");
$self->assert($expander, 1, 'Could not find a string expander.');
$self->assert($expander, 1, "Could not find a string expander for string '$name' of type '$type'");
}
return $expander->expand($self->app, $self, $session, $self->actualProtocol, $string, $data);
}