mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 23:44:40 +01:00
reload no longer be skipped when there're errors
This commit is contained in:
@@ -31,7 +31,9 @@ func (handler *EventHandler) Handle(parent task.Task, events []watcher.Event) {
|
||||
newRoutes, err := handler.provider.LoadRoutesImpl()
|
||||
if err != nil {
|
||||
handler.errs.Add(err.Subject("load routes"))
|
||||
return
|
||||
if newRoutes.Size() == 0 {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if common.IsDebug {
|
||||
|
||||
Reference in New Issue
Block a user