From cad3b8b622c0a7b34a586e4d22392ac759de202f Mon Sep 17 00:00:00 2001 From: Shroominic Date: Wed, 22 Nov 2023 21:29:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Update=20Error=20docstr?= =?UTF-8?q?ing,=20fields?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/funcchain/types.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/funcchain/types.py b/src/funcchain/types.py index b83f94b..9d8318e 100644 --- a/src/funcchain/types.py +++ b/src/funcchain/types.py @@ -69,11 +69,12 @@ def __str__(self) -> str: class Error(BaseModel): """ - If anything goes wrong and you can not do what is expected, - use this error function as fallback. + Fallback function for invalid input. + If you are unsure on what function to call, use this error function as fallback. + This will tell the user that the input is not valid. """ - title: str = Field(..., description="CamelCase Name titeling the error") + title: str = Field(description="CamelCase Name titeling the error") description: str = Field( ..., description="Short description of the unexpected situation" )