mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-02-08 00:07:06 +08:00
Fixed some errors not being Error objects
This commit is contained in:
parent
d4a92b4dea
commit
cc64d9883a
2
index.js
2
index.js
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user