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); }