Skip to content

Commit 982ee0a

Browse files
committed
adds routing exception output.
1 parent 9ffb763 commit 982ee0a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/Bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function dispatch( Application $App ) : void
5959
}
6060
catch( \Exception $e )
6161
{
62-
echo 'Ouch.';
62+
echo $e->getMessage()."<br>".$e->getTraceAsString();
6363
}
6464
}
6565

tests/BootstrapTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function testDispatchWithException()
248248
$Output = ob_get_clean();
249249

250250
// Should output 'Ouch.' when exception is caught
251-
$this->assertEquals( 'Ouch.', $Output );
251+
$this->assertStringContainsString( 'Exception', $Output );
252252
}
253253

254254
/**

versionlog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Added routing exception output.
2+
13
## 0.8.1
24

35
* Added integrated rate limiting support via routing component.

0 commit comments

Comments
 (0)