From e3ff964a5adae0c9c2bb09d3b3bf50f6243e6bf2 Mon Sep 17 00:00:00 2001 From: Saurabh Daware Date: Sun, 8 Sep 2019 22:20:02 +0530 Subject: [PATCH] double open message fix --- lib/action.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/action.js b/lib/action.js index 52122ef..4c079c9 100644 --- a/lib/action.js +++ b/lib/action.js @@ -116,8 +116,9 @@ async function openProject(projectName){ throwCreateIssueError(stderr); return; } - + console.log(`${chalk.bold.green(">>>")} Opening ${selectedProject.name} ${chalk.green("✔")}`); + }catch(err){ console.error("Could not open project :("); console.warn(`Are you sure your editor uses command ${chalk.yellow(commandToOpen)} to open directories from terminal?`); @@ -125,7 +126,6 @@ async function openProject(projectName){ return; } - console.log(`Opening ${selectedProject.name} :D !`); } // pm seteditor [command]