put correct error messages in Document loop
This commit is contained in:
@@ -159,7 +159,7 @@ abstract class BaseCachedFile extends BaseAction
|
|||||||
// Create directory (recursively) if it does not exists.
|
// Create directory (recursively) if it does not exists.
|
||||||
if ($create_if_not_exists && !is_dir($path)) {
|
if ($create_if_not_exists && !is_dir($path)) {
|
||||||
if (!@mkdir($path, 0777, true)) {
|
if (!@mkdir($path, 0777, true)) {
|
||||||
throw new \RuntimeException(sprintf("Failed to create %s/%s file in cache directory", $cache_base));
|
throw new \RuntimeException(sprintf("Failed to create %s file in cache directory", $path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ class Document extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
$loopResult->addRow($loopResultRow);
|
$loopResult->addRow($loopResultRow);
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
// Ignore the result and log an error
|
// Ignore the result and log an error
|
||||||
Tlog::getInstance()->addError("Failed to process document in document loop: ", $this->args);
|
Tlog::getInstance()->addError(sprintf("Failed to process document in document loop: %s", $ex->getMessage()), $this->args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
0
web/install/I18n/en_US.php
Normal file → Executable file
0
web/install/I18n/en_US.php
Normal file → Executable file
Reference in New Issue
Block a user