From 557775bb38a59bf19369c792996034e62c849f09 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Thu, 10 Jul 2008 16:26:04 +0000 Subject: [PATCH] added some more information to an error message. --- docs/changelog/7.x.x.txt | 2 ++ lib/WebGUI/Workflow/Instance.pm | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index f7c52d5ec..67960f04a 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -16,6 +16,8 @@ - fixed: Donation: Add to Cart still visible in Thank You Message screen - optimized PurgeOldInboxMessages workflow - fixed: Calendar: Reorder Events in Week View Broken + - Added more information about workflow instance errors, so we can debug without having + to watch SPECTRE's debug output. 7.5.15 - fixed: Colorpicker window would not open (Martin Kamerbeek / Oqapi) diff --git a/lib/WebGUI/Workflow/Instance.pm b/lib/WebGUI/Workflow/Instance.pm index b73337f61..30814e61b 100644 --- a/lib/WebGUI/Workflow/Instance.pm +++ b/lib/WebGUI/Workflow/Instance.pm @@ -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"; }