mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 13:47:52 +00:00
Fix generateCacheName error not being caught
This commit is contained in:
parent
4341f1219f
commit
531a48a158
@ -60,7 +60,10 @@ exports.download =
|
||||
wifiKey: options.key
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user