Skip to content

Throw an exception if item can not be found.#1295

Closed
richardhj wants to merge 2 commits intohotfix/2.1.1from
richardhj-patch-1
Closed

Throw an exception if item can not be found.#1295
richardhj wants to merge 2 commits intohotfix/2.1.1from
richardhj-patch-1

Conversation

@richardhj
Copy link
Copy Markdown
Member

The exception later gets catched and logged in the system log. The insert tag then will not become generated.
However, with the current version an error gets thrown, that will not be catched.

Fixes https://sentry.io/share/issue/81080c608c6d4d6b86464e2113dc6a00/.

@zonky2 zonky2 added the enhancement This issue is about an enhancement (aka new feature) label Apr 1, 2019
@zonky2 zonky2 added this to the 2.1.0 milestone Apr 1, 2019
@zonky2 zonky2 requested a review from discordier April 1, 2019 10:27
@zonky2 zonky2 modified the milestones: 2.1.0, 2.1.1 Apr 1, 2019
@richardhj richardhj added bug A bug! A bug! Fast, squish it! and removed enhancement This issue is about an enhancement (aka new feature) labels Apr 1, 2019
Copy link
Copy Markdown
Member

@discordier discordier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

discordier added a commit that referenced this pull request Apr 3, 2019
Throw a `RuntimeException` when a MetaModel item can not
be found instead of running into a PHP error.
@discordier discordier closed this Apr 3, 2019
@discordier discordier deleted the richardhj-patch-1 branch April 3, 2019 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A bug! A bug! Fast, squish it!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants