From e76d34891abe8b63ad67a318cd610fcd9eccf8c7 Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Thu, 22 Jun 2023 00:13:28 -0400 Subject: [PATCH] Return a descriptive error message to getConfirmations, if available --- components/confirmations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/confirmations.js b/components/confirmations.js index eeb2229..cdf8692 100644 --- a/components/confirmations.js +++ b/components/confirmations.js @@ -37,7 +37,7 @@ SteamCommunity.prototype.getConfirmations = function(time, key, callback) { return; } - callback(new Error('Failed to get confirmation list')); + callback(new Error(body.message || body.detail || 'Failed to get confirmation list')); return; }