fix(validate.py): return exception message in response when validation fails
This commit is contained in:
parent
a921a83d27
commit
0e200d8992
1 changed files with 1 additions and 1 deletions
|
|
@ -54,4 +54,4 @@ def post_validate_node(node_id: str, data: dict):
|
|||
return json.dumps({"valid": True, "params": str(node._built_object_repr())})
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
return json.dumps({"valid": False})
|
||||
return json.dumps({"valid": False, "params": str(e)})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue