Fix gmnhg crash on non-existent static/
This commit is contained in:
parent
7eaf6b7c8a
commit
cf65fcc5c3
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue