git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit da7a5675 authored by Mike Sheldon's avatar Mike Sheldon

Add check to see if calls to remote gnu fm installs worked

parent f4c26049
......@@ -427,7 +427,14 @@ class RemoteUser extends User {
if ($this->lastfm) {
$wsurl .= '&api_key=' . $lastfm_key;
}
return simplexml_load_file($wsurl);
$response = @simplexml_load_file($wsurl);
if($response == false) {
throw new Exception("Unable to find remote user");
}
return $response;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment