Fixed some errors not being Error objects

This commit is contained in:
Alexander Corn 2015-12-15 00:29:00 -05:00
parent d4a92b4dea
commit cc64d9883a

View File

@ -309,7 +309,7 @@ SteamCommunity.prototype._myProfile = function(endpoint, form, callback) {
var match = response.headers.location.match(/steamcommunity\.com(\/(id|profiles)\/[^\/]+)\/?/);
if(!match) {
callback("Can't get profile URL");
callback(new Error("Can't get profile URL"));
return;
}