Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
add catch exception from executing task
Browse files Browse the repository at this point in the history
  • Loading branch information
runoshun committed Mar 30, 2014
1 parent 82dadaa commit ec247cf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/leiningen/watch.clj
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@
router (make-router watchers)
dirs (map ensure-slash (mapcat :watch-dirs (vals watchers)))
process-event (fn [files]
(doseq [file files]
(run-tasks project (watchers (router file)) file)))]
(try
(doseq [file files]
(run-tasks project (watchers (router file)) file))
(catch Throwable e
(println (.getMessage e))
(.printStackTrace e))))]
(if watchers
(deref
(wt/watcher dirs
Expand Down

0 comments on commit ec247cf

Please sign in to comment.