summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/File.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/File.php b/classes/File.php
index 7f1e7881f..959301eda 100644
--- a/classes/File.php
+++ b/classes/File.php
@@ -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);