Skip to content

Commit a87c66b

Browse files
committed
Do now swallow compiler errors in watch mode.
1 parent be12844 commit a87c66b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tool.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ func main() {
173173

174174
if s.Watcher == nil {
175175
return err
176+
} else if err != nil {
177+
handleError(err, options, nil)
176178
}
177179
s.WaitForChange()
178180
}
@@ -235,6 +237,8 @@ func main() {
235237

236238
if s.Watcher == nil {
237239
return err
240+
} else if err != nil {
241+
handleError(err, options, nil)
238242
}
239243
s.WaitForChange()
240244
}

0 commit comments

Comments
 (0)