chore: make error messages more generic (#2726)
* chore: make error messages more generic * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
7d3fac6f10
commit
a534ac7619
1 changed files with 1 additions and 5 deletions
|
|
@ -391,11 +391,7 @@ def build_custom_component_template(
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=400,
|
status_code=400,
|
||||||
detail={
|
detail={
|
||||||
"error": (
|
"error": ("Please check if you are importing Component correctly."),
|
||||||
"Please check if you are importing Component correctly."
|
|
||||||
" It should be `from langflow.custom import Component`"
|
|
||||||
),
|
|
||||||
"traceback": traceback.format_exc(),
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
if "inputs" in custom_component.template_config:
|
if "inputs" in custom_component.template_config:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue