diff options
author | Simon Green <sgreen+mozilla@redhat.com> | 2012-11-13 14:43:01 +0800 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-13 14:43:01 +0800 |
commit | 718f80eda24c887fa1e31b8142776351db64fe10 (patch) | |
tree | f0abbc08ca4a941be5593bdd58a36f16a4bd31a9 /extensions/Example | |
parent | 8ceb5a0bf4540f9c1389bccfc62764f4eee8e5a4 (diff) | |
download | bugs-718f80eda24c887fa1e31b8142776351db64fe10.tar bugs-718f80eda24c887fa1e31b8142776351db64fe10.tar.gz bugs-718f80eda24c887fa1e31b8142776351db64fe10.tar.bz2 bugs-718f80eda24c887fa1e31b8142776351db64fe10.tar.xz bugs-718f80eda24c887fa1e31b8142776351db64fe10.zip |
Bug 615627: Make t/012throwables.t know about user errors defined in extensions
r=dkl, a=LpSolit
Diffstat (limited to 'extensions/Example')
-rw-r--r-- | extensions/Example/Extension.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index f3efcb2a8..b3b1b299f 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -709,10 +709,12 @@ sub _check_short_desc { my $invocant = shift; my $value = $invocant->$original(@_); if ($value !~ /example/i) { - # Uncomment this line to make Bugzilla throw an error every time + # Use this line to make Bugzilla throw an error every time # you try to file a bug or update a bug without the word "example" # in the summary. - #ThrowUserError('example_short_desc_invalid'); + if (0) { + ThrowUserError('example_short_desc_invalid'); + } } return $value; } |