зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2d98944b83
Коммит
8a6d55c4de
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче