This commit is contained in:
Liang Ding 2019-05-24 11:36:42 +08:00
parent 58ae60da85
commit ce8351f38c
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
1 changed files with 7 additions and 1 deletions

View File

@ -176,7 +176,13 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) {
}
line, err := outReader.ReadString('\n')
if io.EOF == err || os.ErrClosed == err {
if io.EOF == err {
break
}
_, ok := err.(*os.PathError)
if ok {
// 构建时报 “read |0: file already closed” https://github.com/b3log/wide/issues/363
break
}