Skip to content

Commit

Permalink
Re-enable try/catch around Feature content eval()
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldkit-zz committed Feb 22, 2010
1 parent 68056ae commit 616bfa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/story/feature.js
Expand Up @@ -84,8 +84,8 @@ exports.Feature = function (feature, fn) {
};

// Evaluate the Feature block.
/*try {*/ with (steps) { with (asyncHelpers) { eval(contents) } } //}
//catch (e) { sys.puts(e); process.exit() }
try { with (steps) { with (asyncHelpers) { eval(contents) } } }
catch (e) { sys.puts('Error eval()ing Feature contents.'); sys.puts(e); process.exit() }

// Run the queue on the next tick, so we return from the constructor first.
process.nextTick(function () {
Expand Down

0 comments on commit 616bfa4

Please sign in to comment.