1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

Debug mode: Include stacktrace in JSON-API errors

Refs #1843, #1865.
This commit is contained in:
Franz Liedke
2019-09-04 23:35:32 +02:00
parent 26229db1fd
commit 0a2bdbaa09
2 changed files with 19 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ class ApiServiceProvider extends AbstractServiceProvider
$pipe->pipe(new HttpMiddleware\HandleErrors(
$app->make(Registry::class),
$app->make(JsonApiFormatter::class),
new JsonApiFormatter($app->inDebugMode()),
$app->tagged(Reporter::class)
));