Skip to content

Commit

Permalink
Issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
craigspaeth committed Sep 21, 2011
1 parent 3cdc44e commit 3f71a39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sentry.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ watchFile = (file, task, callback) ->
fs.watchFile file, (curr, prev) ->
return if curr.size is prev.size and curr.mtime.getTime() is prev.mtime.getTime()
if _.isString task
exec 'cake stub', (err, stdout, stderr) ->
callback(err, stdout, stderr)
exec task, (err, stdout, stderr) ->
console.log stdout
console.log err if err?
callback(err, stdout, stderr) if callback?
else
callback file

Expand Down

0 comments on commit 3f71a39

Please sign in to comment.