Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Error Exception Message Of "Message Not Exists.", Should be "Suggested Questions Is Disabled." (#7219)

lichao13d061911b6c
diff --git a/api/controllers/service_api/app/message.py b/api/controllers/service_api/app/message.py
index c8b44cfa381..875870e667c 100644
--- a/api/controllers/service_api/app/message.py
+++ b/api/controllers/service_api/app/message.py
@@ -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()