Skip to content

Commit

Permalink
Upgrade Cadence to 0.0.56.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Jul 23, 2015
1 parent cc85ed0 commit 658f546
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
},
"dependencies":
{
"cadence": "0.0.43"
"cadence": "0.0.56"
},
"scripts":
{
Expand Down
14 changes: 7 additions & 7 deletions run.js
@@ -1,5 +1,5 @@
var util = require('util'),
cadence = require('cadence'),
cadence = require('cadence/redux'),
slice = [].slice
var createUsage = require('./usage')
var getopt = require('./getopt')
Expand All @@ -10,7 +10,7 @@ module.exports = cadence(function (async, source, env, argv, io, main) {
var options = {}, usage

// wrap in a Cadence try/catch block
async([function () {
var block = async([function () {

// parse usage
var usage = createUsage(source)
Expand Down Expand Up @@ -90,7 +90,7 @@ module.exports = cadence(function (async, source, env, argv, io, main) {
// run program
main(options, async())

}, function (errors, error) {
}, function (error) {

// if we threw the error, write it to the console, otherwise rethrow
if (error === options._thrown) {
Expand All @@ -102,19 +102,19 @@ module.exports = cadence(function (async, source, env, argv, io, main) {
}

// exit with error code
return [ async, options._code ]
return [ block, options._code ]

} else {

// yoiks, and away!
throw errors
throw error
}

}], function () {

// zero exit code
return 0
return [ block, 0 ]

})
})()

})

0 comments on commit 658f546

Please sign in to comment.