From df43de048793fdda20379a0e6c0da6e81a49690d Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 11 Dec 2017 13:52:06 +0900 Subject: [PATCH] :v: --- tools/migration/node.2017-12-11.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/migration/node.2017-12-11.js b/tools/migration/node.2017-12-11.js index 3a3fef051..b9686b8b4 100644 --- a/tools/migration/node.2017-12-11.js +++ b/tools/migration/node.2017-12-11.js @@ -17,7 +17,11 @@ const migrate = doc => new Promise(async (res, rej) => { .setFormat('ppm') .resize(1, 1) .toBuffer(async (err, buffer) => { - if (err) rej(err); + if (err) { + console.error(err); + res(false); + return; + } const r = buffer.readUInt8(buffer.length - 3); const g = buffer.readUInt8(buffer.length - 2); const b = buffer.readUInt8(buffer.length - 1);