Commit 5432b26b authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 298306: For new products, the charting error message "The tool which gathers…

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 <wurblzap@gmail.com> r=gerv a=myk
parent de1f1617
......@@ -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;
......
......@@ -70,8 +70,18 @@
the error [% bug.error FILTER html %].
[% ELSIF error == "chart_data_not_generated" %]
The tool which gathers [% terms.bug %] counts has not been run yet.
[% IF product %]
Charts for the <em>[% product FILTER html %]</em> product are not
available yet because no charting data has been collected for it since it
was created.
[% ELSE %]
No charting data has been collected yet.
[% END %]
Please wait a day and try again.
If you're seeing this message after a day, then you should contact
<a href="mailto:[% Param('maintainer') %]">[% Param('maintainer') %]</a>
and reference this error.
[% ELSIF error == "chart_datafile_corrupt" %]
The chart data file [% file FILTER html %] is corrupt.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment