From 02ded9b5451f57a16443635cdb09299442a40970 Mon Sep 17 00:00:00 2001 From: Akarshan Biswas Date: Tue, 12 Aug 2025 21:38:22 +0530 Subject: [PATCH] fix: Improve error message for invalid version/backend format (#6149) * fix: Improve error message for invalid version/backend format This commit changes the error message displayed when the `version_backend` configuration is invalid. The new message is more user-friendly and suggests a simple solution, such as restarting the application, which is more helpful to the user than the previous technical error message. * fix typo --- extensions/llamacpp-extension/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/llamacpp-extension/src/index.ts b/extensions/llamacpp-extension/src/index.ts index 75afb81ae..4c6d4a45e 100644 --- a/extensions/llamacpp-extension/src/index.ts +++ b/extensions/llamacpp-extension/src/index.ts @@ -1165,7 +1165,7 @@ export default class llamacpp_extension extends AIEngine { const [version, backend] = cfg.version_backend.split('/') if (!version || !backend) { throw new Error( - `Invalid version/backend format: ${cfg.version_backend}. Expected format: /` + "Initial setup for the backend failed due to a network issue. Please restart the app!" ) }