Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Friendlier error when user puts wrong type #16

Open
dgasull opened this issue Nov 27, 2019 · 0 comments
Open

Friendlier error when user puts wrong type #16

dgasull opened this issue Nov 27, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@dgasull
Copy link
Contributor

dgasull commented Nov 27, 2019

When there is an error in the class definition, e.g.

class Whatever(DataClayObject):
    """
    ...
    @ClassField some_attr invalid_name
    ...
    """
    ...

Throw a better hint to what is the error. Now, the system complains that cannot split . because it expects a dataClay class signature (i.e.: namespace.class.spec.MyClass). But if there is a typo or something else, it would be nice to include which class triggered the error and on which attribute.

[Writing this issue because CLASS has been stucked on an error and sending the incorrect class file for some days, and tbh, it was not their fault]

@dgasull dgasull added the enhancement New feature or request label Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants