show error message for missing theme

This commit is contained in:
AJ ONeal 2017-04-07 00:23:53 -06:00
parent 3a4deb9e0e
commit 8d4af3894a
1 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,10 @@
if (!themename) {
themename = desi.site.theme || desi.config.theme;
}
if (!desi.config.themes[themename]) {
console.error("'" + themename + "' was not found among the themes");
return arr;
}
// TODO NO DEFAULTS
if ('__page__' === layoutname) {