Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
11bda7df
Commit
11bda7df
authored
Feb 24, 2011
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
godoc: log errors when reading filter files
R=r, r2 CC=golang-dev
https://golang.org/cl/4230042
parent
87fe958a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/cmd/godoc/godoc.go
src/cmd/godoc/godoc.go
+8
-3
No files found.
src/cmd/godoc/godoc.go
View file @
11bda7df
...
...
@@ -148,8 +148,13 @@ func readDirList(filename string) ([]string, os.Error) {
}
// create a sorted list of valid directory names
filter
:=
func
(
path
string
)
bool
{
d
,
err
:=
os
.
Lstat
(
path
)
return
err
==
nil
&&
isPkgDir
(
d
)
d
,
e
:=
os
.
Lstat
(
path
)
if
e
!=
nil
&&
err
==
nil
{
// remember first error and return it from readDirList
// so we have at least some information if things go bad
err
=
e
}
return
e
==
nil
&&
isPkgDir
(
d
)
}
list
:=
canonicalizePaths
(
strings
.
Split
(
string
(
contents
),
"
\n
"
,
-
1
),
filter
)
// for each parent path, remove all it's children q
...
...
@@ -161,7 +166,7 @@ func readDirList(filename string) ([]string, os.Error) {
i
++
}
}
return
list
[
0
:
i
],
nil
return
list
[
0
:
i
],
err
}
...
...
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