From f01fbf9946159b5622a305593a7dcd29704503e7 Mon Sep 17 00:00:00 2001 From: anseki Date: Fri, 24 Apr 2015 21:12:40 +0900 Subject: [PATCH] Fix: old error message --- lib/readline-sync.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/readline-sync.js b/lib/readline-sync.js index 6604c2d..45c9bc8 100644 --- a/lib/readline-sync.js +++ b/lib/readline-sync.js @@ -945,6 +945,7 @@ exports.questionPath = function(query, options) { limit: function(value) { var exists, stat, res; value = replaceHomePath(value, true); + error = ''; // for validate // mkdir -p function mkdirParents(dirPath) { dirPath.split(/\/|\\/).reduce(function(parents, dir) { diff --git a/package.json b/package.json index f02272f..c83814a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "readline-sync", - "version": "1.2.11", + "version": "1.2.12", "title": "readlineSync", "description": "Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).", "keywords": [