Skip to content

Return a 404 when the conversation id is not found #2

@GromNaN

Description

@GromNaN

Going to /conversation/1234 (where conversation with id 1234 does not exist), an error 404 is expected. Got 500.

public function mount(
string $id = null,
): void {
if ($id) {
// @todo catch not found exception
$this->conversation = $this->documentManager->find(Conversation::class, $id);
} else {
$this->conversation = new Conversation();
}
}

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