improve debug and error controlling on explorer

This commit is contained in:
Diogo Cordeiro 2018-08-02 07:30:07 +01:00
parent f38b6c482f
commit 6a608f08ed

View File

@ -60,7 +60,7 @@ class Activitypub_explorer
$actor_profile = $discovery->lookup($url);
return $actor_profile[0];
} catch (Exception $e) {
throw new Exception('Invalid Actor: '.$e->getMessage());
throw new Exception('Invalid Actor: '.$url);
}
unset($discovery);
}