Skip to content

Commit

Permalink
improved error reporting re brianpetro/obsidian-smart-connections#646…
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpetro committed Jun 29, 2024
1 parent 9922d43 commit 52b4d95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smart-entities/smart_entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ exports.cos_sim = cos_sim;
// DO: Extract to separate files
class SmartNotes extends SmartEntities {
async import(files, opts= {}) {
let batch = [];
try{
let batch = [];
const timeoutDuration = 10000; // Timeout duration in milliseconds (e.g., 10000 ms for 10 seconds)
let i = 0;
for(i = 0; i < files.length; i++){
Expand Down Expand Up @@ -335,8 +335,8 @@ class SmartNotes extends SmartEntities {
this.env.main.notices.show('done initial scan', [`Making Smart Connections...`, `Done importing Smart Notes.`], { timeout: 3000 });
this.ensure_embeddings();
}catch(e){
console.log("error importing blocks");
console.log(e);
console.warn("error importing notes: ", e);
console.warn({batch});
}
}
async ensure_embeddings(show_notice = false) {
Expand Down

0 comments on commit 52b4d95

Please sign in to comment.