mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-05 23:05:44 +02:00
added more logging
This commit is contained in:
parent
d5f84f1346
commit
b1a36b15c2
1 changed files with 8 additions and 2 deletions
|
@ -204,12 +204,18 @@ export class Prompter {
|
||||||
this.convo_examples.load(this.profile.conversation_examples),
|
this.convo_examples.load(this.profile.conversation_examples),
|
||||||
this.coding_examples.load(this.profile.coding_examples),
|
this.coding_examples.load(this.profile.coding_examples),
|
||||||
this.skill_libary.initSkillLibrary()
|
this.skill_libary.initSkillLibrary()
|
||||||
]);
|
]).catch(error => {
|
||||||
|
// Preserve error details
|
||||||
|
console.error('Failed to initialize examples. Error details:', error);
|
||||||
|
console.error('Stack trace:', error.stack);
|
||||||
|
throw error;
|
||||||
|
});
|
||||||
|
|
||||||
console.log('Examples initialized.');
|
console.log('Examples initialized.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to initialize examples:', error);
|
console.error('Failed to initialize examples:', error);
|
||||||
throw error;
|
console.error('Stack trace:', error.stack);
|
||||||
|
throw error; // Re-throw with preserved details
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue