Skip to content

Commit

Permalink
change the error message when node type not found and stop the data f…
Browse files Browse the repository at this point in the history
…rom being loaded
  • Loading branch information
wfy1997 committed Oct 7, 2022
1 parent 8352a6e commit 340c39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icdc_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def get_original_value_property_name(name):

def validate_node(self, model_type, obj):
if not model_type or model_type not in self.nodes:
return {'result': False, 'messages': ['Node type: "{}" does not exist!'.format(model_type)], 'warning': True}
return {'result': False, 'messages': ['Node type: "{}" not found in data model'.format(model_type)], 'warning': False}
if not obj:
return {'result': False, 'messages': ['Node is empty!'], 'warning': False}

Expand Down

0 comments on commit 340c39a

Please sign in to comment.