diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-12 18:46:48 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-12 18:46:48 +0100 |
commit | 2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461 (patch) | |
tree | 0267c67f18e8099384bc7ae15f58a4459ed71f63 /chart.cgi | |
parent | Fix the indentation (diff) | |
download | bugzilla-2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461.tar.gz bugzilla-2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461.tar.bz2 bugzilla-2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461.zip |
Bug 676844: Replace ThrowCodeError() by ThrowUserError() when the error is not triggered by the code itself
r=glob a=LpSolit
Diffstat (limited to 'chart.cgi')
-rwxr-xr-x | chart.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -52,7 +52,7 @@ my $dbh = Bugzilla->dbh; my $user = Bugzilla->login(LOGIN_REQUIRED); if (!Bugzilla->feature('new_charts')) { - ThrowCodeError('feature_disabled', { feature => 'new_charts' }); + ThrowUserError('feature_disabled', { feature => 'new_charts' }); } # Go back to query.cgi if we are adding a boolean chart parameter. @@ -269,12 +269,12 @@ sub validateWidthAndHeight { if (defined($vars->{'width'})) { (detaint_natural($vars->{'width'}) && $vars->{'width'} > 0) - || ThrowCodeError("invalid_dimensions"); + || ThrowUserError("invalid_dimensions"); } if (defined($vars->{'height'})) { (detaint_natural($vars->{'height'}) && $vars->{'height'} > 0) - || ThrowCodeError("invalid_dimensions"); + || ThrowUserError("invalid_dimensions"); } # The equivalent of 2000 square seems like a very reasonable maximum size. |