Skip to content

Commit

Permalink
remove redundant yii error command
Browse files Browse the repository at this point in the history
  • Loading branch information
lukassarfert committed Dec 4, 2024
1 parent cc5a4fd commit be33afb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/JsonApiErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class JsonApiErrorHandler extends ErrorHandler

protected function renderException($exception)
{
Yii::error($exception);
if (Yii::$app->has('response')) {
$response = Yii::$app->getResponse();
// reset parameters of response to avoid interference with partially created response data
Expand Down

0 comments on commit be33afb

Please sign in to comment.