Update api/controllers/console/app/workflow.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Yeuoly 2025-10-30 15:59:37 +08:00 committed by GitHub
parent 49ebbd05b5
commit 447127cee4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1072,7 +1072,7 @@ class DraftWorkflowTriggerNodeApi(Resource):
return jsonable_encoder(node_execution)
except Exception as e:
logger.exception("Error running draft workflow trigger node")
return jsonable_encoder({"status": "error", "error": str(e)}), 500
return jsonable_encoder({"status": "error", "error": "An unexpected error occurred while running the node."}), 500
@console_ns.route("/apps/<uuid:app_id>/workflows/draft/trigger/run-all")