We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cf10c7 commit 0b3aa78Copy full SHA for 0b3aa78
src/templates.mjs
@@ -30,6 +30,10 @@ export async function resolveTemplates (folder) {
30
31
const resolveIncludes = (filepath) => {
32
let content = _cached[filepath]
33
+ if (content === undefined) {
34
+ const filename = filepath.replace(resolve(folder) + '/', '')
35
+ throw new Error(`Template "${filename}" does not exist`)
36
+ }
37
const found = content.match(reInclude)
38
if (found) {
39
found.forEach(str => {
0 commit comments