mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 15:19:46 +08:00
fix(validate.py): return exception message in response when validation fails
This commit is contained in:
@ -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)})
|
||||
|
||||
Reference in New Issue
Block a user