Commit deeb43d1 authored by Chris H-C's avatar Chris H-C
Browse files

Bug 1741976 - Improve Scalar and UserInteraction parser errors about types r=janerik

parent f0c8a506
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ class ScalarType:

        # Checks the type for all the fields.
        wrong_type_names = [
            "{} must be {}".format(f, ALL_FIELDS[f].__name__)
            "{} must be {}".format(f, str(ALL_FIELDS[f]))
            for f in definition.keys()
            if not isinstance(definition[f], ALL_FIELDS[f])
        ]
@@ -213,7 +213,7 @@ class ScalarType:
                    ).format(
                        field,
                        self._name,
                        LIST_FIELDS_CONTENT[field].__name__,
                        str(LIST_FIELDS_CONTENT[field]),
                        BASE_DOC_URL,
                    )
                ).handle_later()
+2 −2
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ class UserInteractionType:

        # Checks the type for all the fields.
        wrong_type_names = [
            "{} must be {}".format(f, ALL_FIELDS[f].__name__)
            "{} must be {}".format(f, str(ALL_FIELDS[f]))
            for f in definition.keys()
            if not isinstance(definition[f], ALL_FIELDS[f])
        ]
@@ -164,7 +164,7 @@ class UserInteractionType:
                    ).format(
                        field,
                        self._name,
                        LIST_FIELDS_CONTENT[field].__name__,
                        str(LIST_FIELDS_CONTENT[field]),
                        BASE_DOC_URL,
                    )
                ).handle_later()