]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
throw an exception rather than die()
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 30 Jul 2009 20:55:09 +0000 (16:55 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 30 Jul 2009 20:55:09 +0000 (16:55 -0400)
classes/File.php

index 7f1e7881f887a421fc8a161cfb2b261a5efbe62e..959301edaeff30672bd716326c4aae1420bda476 100644 (file)
@@ -113,7 +113,9 @@ class File extends Memcached_DataObject
 
         if (empty($x)) {
             $x = File::staticGet($file_id);
-            if (empty($x)) die('Impossible!');
+            if (empty($x)) {
+                throw new ServerException("Robin thinks something is impossible.");
+            }
         }
 
         File_to_post::processNew($file_id, $notice_id);