From 4935563d45d03051a54003e05cc0e15bd3e8c65e Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Mon, 30 May 2016 16:27:13 +0300 Subject: [PATCH] Fix `alias rm` bail --- lib/alias.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/alias.js b/lib/alias.js index 35f926f..333ec68 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -43,7 +43,7 @@ export default class Alias extends Now { }); if (403 === res.status) { - bail(new Error('Unauthorized')); + return bail(new Error('Unauthorized')); } if (res.status !== 200) {