Skip to content

Commit

Permalink
Fix gmnhg crash on non-existent static/
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Jan 22, 2021
1 parent 7eaf6b7 commit cf65fcc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/gmnhg/main.go
Expand Up @@ -318,6 +318,12 @@ func main() {

// copy static files to output dir unmodified
if err := filepath.Walk(staticBase, func(p string, info os.FileInfo, err error) error {
if os.IsNotExist(err) {
return nil
}
if err != nil {
return err
}
if info.IsDir() {
return nil
}
Expand Down

0 comments on commit cf65fcc

Please sign in to comment.