Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d72d5a40
Commit
d72d5a40
authored
May 17, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 337701: 012throwables.t doesn't recognize that certain errors are AUTH_ERROR codes
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
parent
9b650b64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
012throwables.t
t/012throwables.t
+12
-3
No files found.
t/012throwables.t
View file @
d72d5a40
...
...
@@ -113,9 +113,18 @@ foreach my $file (keys %test_modules) {
last
if
$line
=~
/^__END__/
;
# skip the POD (at least in
# Bugzilla/Error.pm)
$lineno
++
;
if
(
$line
=~
/^[^#]*Throw(Code|User)Error\s*\(\s*["'](.*?)['"]/
)
{
my
$errtype
=
lc
(
$1
);
my
$errtag
=
$2
;
if
(
$line
=~
/^[^#]*(Throw(Code|User)Error|error\s+=>)\s*\(?\s*["'](.*?)['"]/
)
{
my
$errtype
;
# If it's a normal ThrowCode/UserError
if
(
$2
)
{
$errtype
=
lc
(
$2
);
}
# If it's an AUTH_ERROR tag
else
{
$errtype
=
'code'
;
}
my
$errtag
=
$3
;
push
@
{
$Errors
{
$errtype
}{
$errtag
}{
used_in
}{
$file
}},
$lineno
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment