From b8c79ac8d456fd4a1651977d6672ee47a7f6ebf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 2 Nov 2016 15:53:10 +0200 Subject: [PATCH] Minify: add details to ContentType mismatch errors --- lib/Minify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Minify.php b/lib/Minify.php index c42e60e..7741931 100644 --- a/lib/Minify.php +++ b/lib/Minify.php @@ -720,7 +720,7 @@ class Minify if (!empty($options['contentType'])) { // just verify sources have null content type or match the options if ($sourceType !== null && $sourceType !== $options['contentType']) { - $this->logger && $this->logger->warning('ContentType mismatch'); + $this->logger && $this->logger->warning("ContentType mismatch: '{$sourceType}' != '{$options['contentType']}'"); $this->sources = array(); @@ -733,7 +733,7 @@ class Minify if ($type === null) { $type = $sourceType; } elseif ($sourceType !== $type) { - $this->logger && $this->logger->warning('ContentType mismatch'); + $this->logger && $this->logger->warning("ContentType mismatch: '{$sourceType}' != '{$type}'"); $this->sources = array();