Skip to content

Non-string messages not rendering when exception raised #1369

@michprev

Description

@michprev
  • Laravel v9.44.0 (PHP v8.1.13)
  • barryvdh/laravel-debugbar version - v3.7.0

How to reproduce

Modify the laravel example app by inserting the following lines anywhere into resources/views/welcome.blade.php:

@php
$arr = [
    'name' => 'John',
    'age' => 30,
    'cars' => [
        'Ford',
        'BMW',
        'Toyota'
    ]
];
\Debugbar::log($arr);

throw new Exception('Error Processing Request', 1);

@endphp

Observed behavior

image

Expected behavior

With the throw new Exception('Error Processing Request', 1); line removed / commented out:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions