Skip to content

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

Closed

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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