Skip to content

Better diagnostics when ActiveRecord model can't be instantiated #4

Description

@dominicsayers

If a make fails because of ActiveRecord validation errors, we get only the raw (and quite unhelpful) ActiveRecord message. This doesn't identify which model was being instantiated nor what parameters were passed to its new method.

This information is available to Machinist so we should trap the exception and add some decoration to the message.

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