Pass a Error obj to the callback

This commit is contained in:
Jarzon 2017-02-08 15:22:50 -05:00
parent f7ebe68bd8
commit 530bbcb9eb

View File

@ -562,7 +562,8 @@ SteamCommunity.prototype.getAllGroupComments = function(gid, from, count, callba
SteamCommunity.prototype.deleteGroupComment = function(gid, cid, callback) {
if(Number.isInteger(cid)) {
callback("Pass the comment id as a string");
callback(new Error("Pass the comment id as a string"));
return;
}
var options = {