Skip to content

context is missing information for ActionLogic errors #13

Description

@rewinfrey

When an ActionLogic error is thrown, the intent is to communicate the context in which the error was thrown (i.e. the name of the specific class). Instead the context today reports a generic catchall Class:

ActionLogic::AttributeTypeError: context: Class message: Attribute: integer_test with value:  was expected to be of type Fixnum but is NilClass

The issue is not threading the executionContext from ActionCore through to the ActionValidation methods. If executionContext is passed as an argument, when we find an error within any of the ActionValidation methods we would have the originating class information for producing a better error message.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions