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": [