Skip to content

Commit 065993d

Browse files
committed
throw backend setup errors to UI
1 parent 4909f1b commit 065993d

File tree

1 file changed

+2
-4
lines changed
  • extensions/llamacpp-extension/src

1 file changed

+2
-4
lines changed

extensions/llamacpp-extension/src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,14 @@ export default class llamacpp_extension extends AIEngine {
165165
try {
166166
version_backends = await listSupportedBackends()
167167
if (version_backends.length === 0) {
168-
console.warn(
168+
throw new Error(
169169
'No supported backend binaries found for this system. Backend selection and auto-update will be unavailable.'
170170
)
171-
return
172171
} else {
173172
version_backends.sort((a, b) => b.version.localeCompare(a.version))
174173
}
175174
} catch (error) {
176-
console.error('Failed to fetch supported backends:', error)
177-
return
175+
throw new Error(`Failed to fetch supported backends: {error}`)
178176
}
179177

180178
let bestAvailableBackendString =

0 commit comments

Comments
 (0)