mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Log fsync errors
This commit is contained in:
@@ -847,7 +847,9 @@ func NewWatcher(port int) error {
|
|||||||
} else if err == nil {
|
} else if err == nil {
|
||||||
// If file still exists, sync it
|
// If file still exists, sync it
|
||||||
logger.Println("Syncing", relPath, "to", publishDir)
|
logger.Println("Syncing", relPath, "to", publishDir)
|
||||||
syncer.Sync(filepath.Join(publishDir, relPath), relPath)
|
if err := syncer.Sync(filepath.Join(publishDir, relPath), relPath); err != nil {
|
||||||
|
jww.ERROR.Println(err)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
jww.ERROR.Println(err)
|
jww.ERROR.Println(err)
|
||||||
}
|
}
|
||||||
@@ -857,7 +859,9 @@ func NewWatcher(port int) error {
|
|||||||
|
|
||||||
// For all other event operations Hugo will sync static.
|
// For all other event operations Hugo will sync static.
|
||||||
logger.Println("Syncing", relPath, "to", publishDir)
|
logger.Println("Syncing", relPath, "to", publishDir)
|
||||||
syncer.Sync(filepath.Join(publishDir, relPath), relPath)
|
if err := syncer.Sync(filepath.Join(publishDir, relPath), relPath); err != nil {
|
||||||
|
jww.ERROR.Println(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user