diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-12 13:20:32 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-12 13:20:32 -0300 |
commit | 3a5b49cf3a10702c0dae1190c9baabd8a2c2ef3b (patch) | |
tree | c7a1ac0d4c2096733fd3fdfdc549f5695a78532e /src/write/build-modes | |
parent | b8394a89d31da72ef7d2086a1088a29e68df4edc (diff) |
content: stub track page, misc. other changes
* generateContributionLinks replaced with linkContribution, tests still need updating * album pages respect albums without cover art * track pages without unique art inherit art tags from album (fixes #13) not heavily tested, this commit probably breaks some pages which were loading correctly before
Diffstat (limited to 'src/write/build-modes')
-rw-r--r-- | src/write/build-modes/live-dev-server.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js index 6dbcf3ee..1e72e5a8 100644 --- a/src/write/build-modes/live-dev-server.js +++ b/src/write/build-modes/live-dev-server.js @@ -433,6 +433,11 @@ export async function go({ function runContentFunction({name, args, relations}) { const contentFunction = fulfilledContentDependencies[name]; + + if (!contentFunction) { + throw new Error(`Content function ${name} unfulfilled or not listed`); + } + const filledRelations = fillRelationsLayoutFromSlotResults(relationIdentifier, slotResults, relations); |