Skip to content
Browse files

Fixed #106 `Object #<Object> has no method 'error'`

Some action calls had the wrong scope.
  • Loading branch information...
1 parent 2c6b526 commit ce3b3001f8285b2af865244c896c75a5b4d118f2 @balupton balupton committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/docpad.coffee
View
8 lib/docpad.coffee
@@ -394,22 +394,22 @@ class Docpad
# Handle
switch action
when 'skeleton', 'scaffold'
- @skeletonAction (err) ->
+ @skeletonAction (err) =>
return @error(err) if err
next() if next
when 'generate'
- @generateAction (err) ->
+ @generateAction (err) =>
return @error(err) if err
next() if next
when 'watch'
- @watchAction (err) ->
+ @watchAction (err) =>
return @error(err) if err
next() if next
when 'server', 'serve'
- @serverAction (err) ->
+ @serverAction (err) =>
return @error(err) if err
next() if next

0 comments on commit ce3b300

Please sign in to comment.
Something went wrong with that request. Please try again.