From 197de2508245be8af936a86dd03e336ad27e7d78 Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Tue, 17 Dec 2024 20:57:24 -0500 Subject: [PATCH] Fix error handling --- lib/games/sendUserNotification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/games/sendUserNotification.js b/lib/games/sendUserNotification.js index 2f9e6974..45dec5bd 100644 --- a/lib/games/sendUserNotification.js +++ b/lib/games/sendUserNotification.js @@ -56,7 +56,7 @@ function sendUserNotification (universeId, userId, assetId, parameters, jar) { reject(new Error(`[${res.statusCode}] ${res.statusMessage} ${res.body}`)) } else { const data = Object.assign(res.body) - reject(new Error(`[${res.statusCode}] ${data.Error} ${data.Message}`)) + reject(new Error(`[${res.statusCode}] ${data.code} ${data.message}`)) } } })