More explicit catch

This commit is contained in:
Mikael Nordfeldth 2016-01-04 01:53:33 +01:00
parent f7a1c8a94c
commit 00ace6c2df

View File

@ -397,8 +397,8 @@ class ActivityUtils
// the exception thrown will cancel before reaching $object
$object = call_user_func(array($object, 'fromUri'), $uri);
break;
} catch (Exception $e) {
common_debug('Could not find local activity object from uri: '.$uri);
} catch (UnknownUriException $e) {
common_debug('Could not find local activity object from uri: '.$e->object_uri);
}
}
if (!empty($object)) {