mirror of
https://github.com/mrclay/minify.git
synced 2025-08-12 09:05:08 +02:00
Minify: add details to ContentType mismatch errors
This commit is contained in:
@@ -720,7 +720,7 @@ class Minify
|
|||||||
if (!empty($options['contentType'])) {
|
if (!empty($options['contentType'])) {
|
||||||
// just verify sources have null content type or match the options
|
// just verify sources have null content type or match the options
|
||||||
if ($sourceType !== null && $sourceType !== $options['contentType']) {
|
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();
|
$this->sources = array();
|
||||||
|
|
||||||
@@ -733,7 +733,7 @@ class Minify
|
|||||||
if ($type === null) {
|
if ($type === null) {
|
||||||
$type = $sourceType;
|
$type = $sourceType;
|
||||||
} elseif ($sourceType !== $type) {
|
} elseif ($sourceType !== $type) {
|
||||||
$this->logger && $this->logger->warning('ContentType mismatch');
|
$this->logger && $this->logger->warning("ContentType mismatch: '{$sourceType}' != '{$type}'");
|
||||||
|
|
||||||
$this->sources = array();
|
$this->sources = array();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user