Browse Source

Improve invalid prompt error message

pull/695/head
space-nuko 2 years ago
parent
commit
c33b7c5549
  1. 4
      execution.py

4
execution.py

@ -554,8 +554,8 @@ def validate_prompt(prompt):
errors_list = "\n".join(errors_list)
error = {
"type": "prompt_no_good_outputs",
"message": "Prompt has no properly connected outputs",
"type": "prompt_outputs_failed_validation",
"message": "Prompt outputs failed validation",
"details": errors_list,
"extra_info": {}
}

Loading…
Cancel
Save