mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2024-12-26 06:40:09 +08:00
Return a descriptive error message to getConfirmations, if available
This commit is contained in:
parent
20ad260d68
commit
e76d34891a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user