diff --git a/src/command-line/add.js b/src/command-line/add.js index 2a852663..c86bedd5 100644 --- a/src/command-line/add.js +++ b/src/command-line/add.js @@ -18,6 +18,10 @@ program prompt: "[thelounge] Enter password: ", silent: true }, function(err, password) { + if (!password) { + log.error("Password cannot be empty."); + return; + } if (!err) { add(manager, name, password); }