Skip to content

Commit f9ff39c

Browse files
committed
settings: Better error message if settings_type value is wrong
1 parent 64b55ea commit f9ff39c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/data/settings.data.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ async function normalizeSettings(settings) {
4747
}
4848

4949
for (const v2 of v.values) {
50+
if (!v2) {
51+
throw new Error("Incorrect value type for " + k)
52+
}
5053
v2.url = md.renderInline(v2.url)
5154
}
5255

0 commit comments

Comments
 (0)