mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 02:39:49 +00:00
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:
parent
a8114380d7
commit
bcbb7d8e96
@ -51,11 +51,7 @@ exports.download =
|
|||||||
wifiKey: options.key
|
wifiKey: options.key
|
||||||
appId: params.id
|
appId: params.id
|
||||||
|
|
||||||
try
|
|
||||||
fileName = resin.models.os.generateCacheName(osParams)
|
fileName = resin.models.os.generateCacheName(osParams)
|
||||||
catch error
|
|
||||||
return done(error)
|
|
||||||
|
|
||||||
outputFile = options.output or path.join(resin.settings.get('directories.os'), fileName)
|
outputFile = options.output or path.join(resin.settings.get('directories.os'), fileName)
|
||||||
|
|
||||||
async.waterfall [
|
async.waterfall [
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "~0.9.0",
|
"async": "~0.9.0",
|
||||||
"capitano": "~1.3.0",
|
"capitano": "~1.3.1",
|
||||||
"coffee-script": "~1.8.0",
|
"coffee-script": "~1.8.0",
|
||||||
"conf.js": "^0.1.1",
|
"conf.js": "^0.1.1",
|
||||||
"diskio": "^1.0.0",
|
"diskio": "^1.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user