added some more information to an error message.

This commit is contained in:
Doug Bell 2008-07-10 16:26:04 +00:00
parent 6093c410c9
commit 557775bb38
2 changed files with 5 additions and 1 deletions

View file

@ -330,7 +330,9 @@ sub run {
if ($class && $method) {
$object = eval { WebGUI::Pluggable::instanciate($class, $method, [$self->session, $params]) };
if ($@) {
$self->session->errorHandler->error($@);
$self->session->errorHandler->error(
q{Error on workflow instance '} . $self->getId . q{': }. $@
);
$self->set({lastStatus=>"error"}, 1);
return "error";
}