Skip to content

Commit

Permalink
Update src/Connection.php
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
  • Loading branch information
ziaratban and samdark authored Jul 6, 2020
1 parent d9413e7 commit ebeddb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ public function open()
Yii::endProfile($token, __METHOD__);
}
} catch (\Exception $e) {
if($this->enableProfiling)
if ($this->enableProfiling) {
Yii::endProfile($token, __METHOD__);
}
throw new Exception($e->getMessage(), (int) $e->getCode(), $e);
}

Expand Down

0 comments on commit ebeddb6

Please sign in to comment.