diff options
author | 2012-11-12 18:46:48 +0100 | |
---|---|---|
committer | 2012-11-12 18:46:48 +0100 | |
commit | 2a6f7d4663dfc5cb00c1bb8b8d8139869a22d461 (patch) | |
tree | 0267c67f18e8099384bc7ae15f58a4459ed71f63 /Bugzilla/Util.pm | |
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 'Bugzilla/Util.pm')
-rw-r--r-- | Bugzilla/Util.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 197a81af4..db25cd27c 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -741,7 +741,7 @@ sub detect_encoding { my $data = shift; Bugzilla->feature('detect_charset') - || ThrowCodeError('feature_disabled', { feature => 'detect_charset' }); + || ThrowUserError('feature_disabled', { feature => 'detect_charset' }); require Encode::Detect::Detector; import Encode::Detect::Detector 'detect'; |