Commit 56636c7f authored by rockyl's avatar rockyl

xxx

parent cc25fb6c
...@@ -46,9 +46,10 @@ export async function compress(bufferOrFile: Buffer | string) { ...@@ -46,9 +46,10 @@ export async function compress(bufferOrFile: Buffer | string) {
try { try {
json = JSON.parse(str); json = JSON.parse(str);
} catch (e) { } catch (e) {
console.log(str)
console.log(e); console.log(e);
} }
reject(json.msg); reject(json?.msg);
} }
}); });
res.on('abort', () => { res.on('abort', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment