aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/SetupCheck.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/phorkie/SetupCheck.php')
-rw-r--r--src/phorkie/SetupCheck.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php
index c4d365c..e06f28c 100644
--- a/src/phorkie/SetupCheck.php
+++ b/src/phorkie/SetupCheck.php
@@ -133,8 +133,13 @@ class SetupCheck
public function checkMimeTypeDetection()
{
$rp = new Repository_Post();
- if ($rp->getType('<?php echo "foo"; ?>') != 'php') {
- $this->fail('MIME type detection fails');
+ $type = $rp->getType('<?php echo "foo"; ?>', true);
+ if ($type != 'php') {
+ $msg = 'MIME type detection fails';
+ if ($type instanceof \PEAR_Error) {
+ $msg .= '. Error: ' . $type->getMessage();
+ }
+ $this->fail($msg);
}
}