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 11
11
use Yii ;
12
12
use yii \base \ExitException ;
13
13
use yii \base \Security ;
14
+ use yii \base \UserException ;
14
15
use yii \mail \MessageInterface ;
15
16
use yii \web \Application ;
16
17
use yii \web \ErrorHandler ;
17
- use yii \web \HttpException ;
18
18
use yii \web \Request ;
19
19
use yii \web \Response as YiiResponse ;
20
20
@@ -372,7 +372,7 @@ public function doRequest(object $request)
372
372
$ app ->trigger ($ app ::EVENT_AFTER_REQUEST );
373
373
$ response ->send ();
374
374
} catch (\Exception $ e ) {
375
- if ($ e instanceof HttpException ) {
375
+ if ($ e instanceof UserException ) {
376
376
// Don't discard output and pass exception handling to Yii to be able
377
377
// to expect error response codes in tests.
378
378
$ app ->errorHandler ->discardExistingOutput = false ;
You can’t perform that action at this time.
0 commit comments