projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2b9d0c
)
fix reject
author
John Livingston
<git@john-livingston.fr>
Fri, 11 May 2018 08:59:02 +0000
(10:59 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Fri, 11 May 2018 13:23:50 +0000
(15:23 +0200)
server/tools/import-videos.ts
patch
|
blob
|
history
diff --git
a/server/tools/import-videos.ts
b/server/tools/import-videos.ts
index b0f7f7d4fc5277e727d44e7a6438e254dde205b3..678503a3e6cec4338ca7b801f84c6a31b65cdef3 100644
(file)
--- 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)
})