Skip to content

Commit

Permalink
fix(init): Better error logging when templates fail to load
Browse files Browse the repository at this point in the history
This fixes #528
  • Loading branch information
aklinker1 committed Mar 6, 2024
1 parent 3834548 commit b47c150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ async function listTemplates(): Promise<Template[]> {
return l.name.localeCompare(r.name);
});
} catch (err) {
throw Error(`Cannot load templates: ${JSON.stringify(err, null, 2)}`);
consola.error(err);
throw Error(`Failed to load templates`);
}
}

Expand Down

0 comments on commit b47c150

Please sign in to comment.