Skip to content

Commit

Permalink
Merge pull request #108 from enhance-dev/issue13
Browse files Browse the repository at this point in the history
Don't swallow error
  • Loading branch information
brianleroux authored Jan 9, 2024
2 parents 1dd314b + 649a22e commit f6ee992
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/http/any-catchall/_get-elements.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@ export default async function getElements (basePath) {
return render({ html, state })
}
}
else {
console.warn('Ignoring component files that do not include a render function')
}
}
catch (error) {
console.warn('Ignoring component files that do not include a render function')
throw new Error(`Issue importing component: ${e}`, { cause: error })
}
}

Expand Down

0 comments on commit f6ee992

Please sign in to comment.