File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Codeception/Lib/Connector Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1111use Yii ;
1212use yii \base \ExitException ;
1313use yii \base \Security ;
14+ use yii \base \UserException ;
1415use yii \mail \MessageInterface ;
1516use yii \web \Application ;
1617use yii \web \ErrorHandler ;
17- use yii \web \HttpException ;
1818use yii \web \Request ;
1919use yii \web \Response as YiiResponse ;
2020
@@ -372,7 +372,7 @@ public function doRequest(object $request)
372372 $ app ->trigger ($ app ::EVENT_AFTER_REQUEST );
373373 $ response ->send ();
374374 } catch (\Exception $ e ) {
375- if ($ e instanceof HttpException ) {
375+ if ($ e instanceof UserException ) {
376376 // Don't discard output and pass exception handling to Yii to be able
377377 // to expect error response codes in tests.
378378 $ app ->errorHandler ->discardExistingOutput = false ;
You can’t perform that action at this time.
0 commit comments