Improved (again) error messages
This commit is contained in:
@@ -262,7 +262,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: ", $ex->getMessage(), ", loop arguments: ", $this->args);
|
Tlog::getInstance()->addError(sprintf("Failed to process document in document loop: %s", $ex->getMessage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ class Image 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 image in image loop: ", $ex->getMessage(), ", loop arguments: ", $this->args);
|
Tlog::getInstance()->addError(sprintf("Failed to process image in image loop: %s", $ex->getMessage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user