Skip to content
Permalink
Browse files

OXDEV-2380 Fixed translator warning bug for Language class in admin area

  • Loading branch information...
Farzam Tahmasebmirza
Farzam Tahmasebmirza committed Aug 27, 2019
1 parent c03e376 commit 19425da58fc0dd98e7f286c474199ba407a86d6f
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/Core/UtilsView.php
@@ -182,6 +182,11 @@ public function addErrorToDisplay($oEr, $blFull = false, $useCustomDestination =
$oEx->setStackTrace($oEr->getTraceAsString());
$oEx->setDebug($blFull);
$oEr = $oEx;
} elseif ($oEr instanceof \Throwable) {
// assuming that a string was given
$sTmp = $oEr;
$oEr = oxNew(\OxidEsales\Eshop\Core\DisplayError::class);
$oEr->setMessage($sTmp->getTraceAsString());
} elseif ($oEr && !($oEr instanceof \OxidEsales\Eshop\Core\Contract\IDisplayError)) {
// assuming that a string was given
$sTmp = $oEr;

0 comments on commit 19425da

Please sign in to comment.
You can’t perform that action at this time.