Skip to content

Commit

Permalink
more work on status code for testings
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Jan 15, 2025
1 parent d3bd8b8 commit 9896c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/testing/BaseTestCase.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ component extends="testbox.system.compat.framework.TestCase" accessors="true" {
event.setPrivateValue( "exception", oException );

// Set Exception Header
getPageContextResponse().setStatus( 500, "Internal Server Error" );
event.setStatusCode( 500, "Internal Server Error" );

// Run custom Exception handler if Found, else run default exception routines
if ( len( arguments.controller.getSetting( "ExceptionHandler" ) ) ) {
Expand Down

0 comments on commit 9896c8f

Please sign in to comment.