From d79855993b95b1c2eababe9ce60f64686c3cc161 Mon Sep 17 00:00:00 2001 From: Ivan Zuzak Date: Mon, 21 Sep 2015 12:54:50 +0200 Subject: [PATCH] Assign error in catch block for clarity --- src/command-installer.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command-installer.coffee b/src/command-installer.coffee index 873c76839..4a0e52bd8 100644 --- a/src/command-installer.coffee +++ b/src/command-installer.coffee @@ -70,7 +70,7 @@ module.exports = try error = null symlinkCommandWithPrivilegeSync(commandPath, destinationPath) - catch error - undefined + catch err + error = err callback?(error)