mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-12 09:04:02 +02:00
reload no longer be skipped when there're errors
This commit is contained in:
parent
c847fe4747
commit
a3ab32e9ab
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ func (handler *EventHandler) Handle(parent task.Task, events []watcher.Event) {
|
||||||
newRoutes, err := handler.provider.LoadRoutesImpl()
|
newRoutes, err := handler.provider.LoadRoutesImpl()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
handler.errs.Add(err.Subject("load routes"))
|
handler.errs.Add(err.Subject("load routes"))
|
||||||
return
|
if newRoutes.Size() == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if common.IsDebug {
|
if common.IsDebug {
|
||||||
|
|
Loading…
Add table
Reference in a new issue