diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index b7c722945a..b85b36a860 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -953,7 +953,7 @@ if ($op eq 'run'){ ); my $total; if (!$sth) { - die "execute_query failed to return sth for report $report_id: $sql"; + push @errors, "Report could not be run " . $errors; } elsif ( !$errors ) { $total = nb_rows($sql) || 0; my $headers = header_cell_loop($sth);