Skip to content

Commit 02ded9b

Browse files
authored
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
1 parent 55d998e commit 02ded9b

File tree

1 file changed

+1
-1
lines changed
  • extensions/llamacpp-extension/src

1 file changed

+1
-1
lines changed

extensions/llamacpp-extension/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ export default class llamacpp_extension extends AIEngine {
11651165
const [version, backend] = cfg.version_backend.split('/')
11661166
if (!version || !backend) {
11671167
throw new Error(
1168-
`Invalid version/backend format: ${cfg.version_backend}. Expected format: <version>/<backend>`
1168+
"Initial setup for the backend failed due to a network issue. Please restart the app!"
11691169
)
11701170
}
11711171

0 commit comments

Comments
 (0)