summaryrefslogtreecommitdiff
path: root/app/Media.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Media.php')
-rw-r--r--app/Media.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Media.php b/app/Media.php
index 48b176b1e9..237d380837 100644
--- a/app/Media.php
+++ b/app/Media.php
@@ -189,6 +189,8 @@ class Media extends GedcomRecord {
try {
return filesize($this->getServerFilename());
} catch (\ErrorException $ex) {
+ DebugBar::addThrowable($ex);
+
return 0;
}
}
@@ -225,6 +227,8 @@ class Media extends GedcomRecord {
I18N::translate('%1$s × %2$s pixels', I18N::number($imgsize['0']), I18N::number($imgsize['1']));
}
} catch (\ErrorException $ex) {
+ DebugBar::addThrowable($ex);
+
// Not an image, or not a valid image?
$imgsize = false;
}