Improved (again) error messages

This commit is contained in:
Franck Allimant
2014-03-14 15:53:21 +01:00
parent 1d4b230417
commit ac4b92949b
2 changed files with 2 additions and 2 deletions

View File

@@ -262,7 +262,7 @@ class Document extends BaseI18nLoop implements PropelSearchLoopInterface
$loopResult->addRow($loopResultRow);
} catch (\Exception $ex) {
// 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()));
}
}

View File

@@ -316,7 +316,7 @@ class Image extends BaseI18nLoop implements PropelSearchLoopInterface
$loopResult->addRow($loopResultRow);
} catch (\Exception $ex) {
// 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()));
}
}