mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
optimize error messages
This commit is contained in:
@ -4,6 +4,10 @@ class PluginDaemonError(Exception):
|
||||
def __init__(self, description: str) -> None:
|
||||
self.description = description
|
||||
|
||||
def __str__(self) -> str:
|
||||
# returns the class name and description
|
||||
return f"{self.__class__.__name__}: {self.description}"
|
||||
|
||||
|
||||
class PluginDaemonInternalServerError(PluginDaemonError):
|
||||
description: str = "Internal Server Error"
|
||||
|
||||
Reference in New Issue
Block a user