mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
Error Exception Message Of "Message Not Exists.", Should be "Suggested Questions Is Disabled." (#7219)
This commit is contained in:
parent
935e72d449
commit
13d061911b
|
@ -131,7 +131,7 @@ class MessageSuggestedApi(Resource):
|
|||
except services.errors.message.MessageNotExistsError:
|
||||
raise NotFound("Message Not Exists.")
|
||||
except SuggestedQuestionsAfterAnswerDisabledError:
|
||||
raise BadRequest("Message Not Exists.")
|
||||
raise BadRequest("Suggested Questions Is Disabled.")
|
||||
except Exception:
|
||||
logging.exception("internal server error.")
|
||||
raise InternalServerError()
|
||||
|
|
Loading…
Reference in New Issue
Block a user