Upgrade to Capitano v1.3.1 and remove unneeded try/catch clause

Capitano v1.3.1 introduces support for automatically catching action
sync thrown errors
This commit is contained in:
Juan Cruz Viotti 2015-02-05 08:49:57 -04:00
parent a8114380d7
commit bcbb7d8e96
2 changed files with 2 additions and 6 deletions

View File

@ -51,11 +51,7 @@ exports.download =
wifiKey: options.key
appId: params.id
try
fileName = resin.models.os.generateCacheName(osParams)
catch error
return done(error)
fileName = resin.models.os.generateCacheName(osParams)
outputFile = options.output or path.join(resin.settings.get('directories.os'), fileName)
async.waterfall [

View File

@ -46,7 +46,7 @@
},
"dependencies": {
"async": "~0.9.0",
"capitano": "~1.3.0",
"capitano": "~1.3.1",
"coffee-script": "~1.8.0",
"conf.js": "^0.1.1",
"diskio": "^1.0.0",