From 00ace6c2df4b52f57644a6b958e9e8e48b1a6760 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 4 Jan 2016 01:53:33 +0100 Subject: [PATCH] More explicit catch --- lib/activityutils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/activityutils.php b/lib/activityutils.php index ef2e232243..da543b2069 100644 --- a/lib/activityutils.php +++ b/lib/activityutils.php @@ -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)) { -- 2.39.5