From: Mikael Nordfeldth <mmn@hethane.se>
Date: Mon, 4 Jan 2016 00:53:33 +0000 (+0100)
Subject: More explicit catch
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=00ace6c2df4b52f57644a6b958e9e8e48b1a6760;p=quix0rs-gnu-social.git

More explicit catch
---

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)) {