Fix generateCacheName error not being caught

This commit is contained in:
Juan Cruz Viotti 2015-02-03 13:51:33 -04:00
parent 4341f1219f
commit 531a48a158

View File

@ -60,7 +60,10 @@ exports.download =
wifiKey: options.key wifiKey: options.key
appId: params.id appId: params.id
fileName = resin.models.os.generateCacheName(osParams) try
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)