From 531a48a1584f91536619b13234cb20682aa92051 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 3 Feb 2015 13:51:33 -0400 Subject: [PATCH] Fix generateCacheName error not being caught --- lib/actions/os.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/actions/os.coffee b/lib/actions/os.coffee index ddaf535d..b38d2c10 100644 --- a/lib/actions/os.coffee +++ b/lib/actions/os.coffee @@ -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)