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 // the exception thrown will cancel before reaching $object
$object = call_user_func(array($object, 'fromUri'), $uri); $object = call_user_func(array($object, 'fromUri'), $uri);
break; break;
} catch (Exception $e) { } catch (UnknownUriException $e) {
common_debug('Could not find local activity object from uri: '.$uri); common_debug('Could not find local activity object from uri: '.$e->object_uri);
} }
} }
if (!empty($object)) { if (!empty($object)) {