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
This commit is contained in:
Akarshan Biswas 2025-08-12 21:38:22 +05:30 committed by GitHub
parent 55d998ea99
commit 02ded9b545
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: <version>/<backend>`
"Initial setup for the backend failed due to a network issue. Please restart the app!"
)
}