Skip to content

Commit

Permalink
log error when error deleting model
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Jan 26, 2024
1 parent 7da5fad commit 8ac95b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/managers/modelsManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class ModelsManager {
await fs.promises.rm(modelDir, { recursive: true });
this.#localModels.delete(modelId);
} catch (err: unknown) {
console.error('unable to delete model', modelId);
console.error('unable to delete model', modelId, err);
} finally {
this.#deleted.delete(modelId);
await this.sendModelsInfo();
Expand Down

0 comments on commit 8ac95b8

Please sign in to comment.