summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi
index 947993a56..1181e3a81 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -232,7 +232,8 @@ sub chart_image_name {
# and number
if ($datasets !~ m/^[A-Za-z0-9:]+$/) {
- die "Invalid datasets $datasets";
+ $vars->{'datasets'} = $datasets;
+ ThrowUserError('invalid_datasets', $vars);
}
# Since we pass the tests, consider it OK