From 5432b26b7479c9b90c1e172d285f02c00c173870 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 2 Sep 2005 04:52:20 +0000 Subject: Bug 298306: For new products, the charting error message "The tool which gathers bug counts has not been run yet" is misleading - Patch by Marc Schumann r=gerv a=myk --- reports.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'reports.cgi') diff --git a/reports.cgi b/reports.cgi index 49948e2bb..7274ea8e2 100755 --- a/reports.cgi +++ b/reports.cgi @@ -253,7 +253,11 @@ sub generate_chart { my ($data_file, $image_file, $type, $product, $datasets) = @_; if (! open FILE, $data_file) { - ThrowCodeError("chart_data_not_generated"); + if ($product eq '-All-') { + $product = ''; + } + + ThrowCodeError("chart_data_not_generated", {'product' => $product}); } my @fields; -- cgit v1.2.3-24-g4f1b