From 656ab7beb636bfd305a4261a951b51ae49f56a66 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 12 Oct 2022 12:38:33 +0000 Subject: [PATCH] Fix app 404s. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4000 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/app.js b/core/app.js index 1d41ce7e..8f2c2ab6 100644 --- a/core/app.js +++ b/core/app.js @@ -98,7 +98,12 @@ function socket(request, response, client) { packageName = match[2]; blobId = await new Database(packageOwner).get('path:' + packageName); if (!blobId) { - response.send(JSON.stringify({action: "error", error: message.path + ' not found'}), 0x1); + response.send(JSON.stringify({ + message: 'tfrpc', + method: "error", + params: [message.path + ' not found'], + id: -1, + }), 0x1); return; } if (packageOwner != 'core') {