diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-05 13:19:01 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-05 13:19:01 +0200 |
| commit | a9f4d77593640388eb07dfdf0d4e3a0bf17416a2 (patch) | |
| tree | 74167377d91aec45a56125e811f3766b8f181f8e /bucky/db | |
| parent | e443b704c5f45b5e9cfdec762f837a0981cffe97 (diff) | |
interface to move files to other threads
Diffstat (limited to 'bucky/db')
| -rw-r--r-- | bucky/db/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bucky/db/index.js b/bucky/db/index.js index a147cd8..51c024b 100644 --- a/bucky/db/index.js +++ b/bucky/db/index.js @@ -191,6 +191,9 @@ db.moveFile = function(file, thread_id){ reject(err) }) }) + }).on('error', err => { + console.error('/!\\ error connecting to s3') + reject(err) }).end() }) return copyPromise |
