From 18dd8585e926e0598fc5d6cda2e1ee2a65b1d013 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Wed, 20 Oct 2021 20:20:42 +0300 Subject: [PATCH] oops wrong error type --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 1bfeb20..5505da8 100644 --- a/src/index.js +++ b/src/index.js @@ -125,7 +125,7 @@ app.ws('/api/album', async (ws, req) => { try { await promisify(exec)(`zip -0rD "data/${folderName}.zip" "data/${folderName}"`); } catch(err) { - return ws.close(1006, 'Zipping album failed'); + return ws.close(1011, 'Zipping album failed'); } await ws.send(JSON.stringify({key: 'download', data: `data/${folderName}.zip`}));