From de55b028284f8b15d39b68e3ce47526fd93e9189 Mon Sep 17 00:00:00 2001 From: Paul Driver Date: Mon, 23 May 2011 12:58:18 -0500 Subject: [PATCH] Durr, I are frodiwht. I are code. --- lib/WebGUI/Workflow/Instance.pm | 2 +- lib/WebGUI/Workflow/Spectre.pm | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/WebGUI/Workflow/Instance.pm b/lib/WebGUI/Workflow/Instance.pm index 8353b7701..be08a3e79 100644 --- a/lib/WebGUI/Workflow/Instance.pm +++ b/lib/WebGUI/Workflow/Instance.pm @@ -679,7 +679,7 @@ sub start { my $spectre = WebGUI::Workflow::Spectre->new($self->session); my $success = $spectre->notify("workflow/addInstance", {cookieName=>$self->session->config->getCookieName, gateway=>$self->session->config->get("gateway"), sitename=>$self->session->config->get("sitename")->[0], instanceId=>$self->getId, priority=>$self->{_data}{priority}}); - return $success ? undef : WebGUI::International->new($self->session, "Macro_SpectreCheck")->get($spectreTest); + return $success ? undef : 'Could not connect to spectre'; } 1; diff --git a/lib/WebGUI/Workflow/Spectre.pm b/lib/WebGUI/Workflow/Spectre.pm index b830bd05f..2c7e54d96 100644 --- a/lib/WebGUI/Workflow/Spectre.pm +++ b/lib/WebGUI/Workflow/Spectre.pm @@ -82,7 +82,6 @@ sub notify { my $result = $remote->post($module, $params); return 1 if defined $result; $error->warn("Couldn't send command to Spectre because ".$POE::Component::IKC::ClientLite::error); - } } else { $error->warn("Couldn't connect to Spectre because ".$POE::Component::IKC::ClientLite::error); }