ActivityPub-federated video streaming platform using P2P directly in your web browser
fix reject
John Livingston7eb5f8cd32d5
diff --git a/server/tools/import-videos.ts b/server/tools/import-videos.tsindex b0f7f7d4fc..678503a3e6 100644--- a/server/tools/import-videos.ts+++ b/server/tools/import-videos.ts@@ -46,7 +46,7 @@ const processOptions = {}async function promptPassword () {- return new Promise ( res => {+ return new Promise ( (res, rej) => {prompt.start()const schema = {properties: {@@ -58,8 +58,7 @@ async function promptPassword () {}prompt.get(schema, function (err, result) {if (err) {- console.log(err.message)- return res();+ return rej(err);}return res(result.password)})