Permalink
Browse files

Remove broken `error` option

This was being misused in place of a `done()` callback with
`grunt.util.spawn`.  Now, servers that have errors no longer fail.

Closes #27
  • Loading branch information...
ericclemmons committed Dec 1, 2013
1 parent 8c2ace8 commit 8ee20f2bab5af20102c04349107dfd4f70144191
Showing with 1 addition and 2 deletions.
  1. +0 −1 tasks/express.js
  2. +1 −1 tasks/lib/server.js
View
@@ -26,7 +26,6 @@ module.exports = function(grunt) {
args: [ ],
node_env: undefined,
background: true,
error: function(err, result, code) { /* Callback has to exist */ },
fallback: function() { /* Prevent EADDRINUSE from breaking Grunt */ },
port: 3000,
delay: 0,
View
@@ -71,7 +71,7 @@ module.exports = function(grunt, target) {
args: options.args,
env: process.env,
fallback: options.fallback
}, options.error);
}, finished);
if (options.delay) {
setTimeout(finished, options.delay);

0 comments on commit 8ee20f2

Please sign in to comment.