Return a descriptive error message to getConfirmations, if available

This commit is contained in:
Alex Corn 2023-06-22 00:13:28 -04:00
parent 20ad260d68
commit e76d34891a
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -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;
}