mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 10:08:58 +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:
|
except services.errors.message.MessageNotExistsError:
|
||||||
raise NotFound("Message Not Exists.")
|
raise NotFound("Message Not Exists.")
|
||||||
except SuggestedQuestionsAfterAnswerDisabledError:
|
except SuggestedQuestionsAfterAnswerDisabledError:
|
||||||
raise BadRequest("Message Not Exists.")
|
raise BadRequest("Suggested Questions Is Disabled.")
|
||||||
except Exception:
|
except Exception:
|
||||||
logging.exception("internal server error.")
|
logging.exception("internal server error.")
|
||||||
raise InternalServerError()
|
raise InternalServerError()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user