diff --git a/index.js b/index.js index 532715f..92322f8 100644 --- a/index.js +++ b/index.js @@ -188,7 +188,7 @@ module.exports = async (config = {}) => { // This feature allows the user to show another layer overlayed (or replacing) parts of the lower layers (visibleFrom - visibleUntil) const visibleDuration = ((visibleUntil || clipDuration) - visibleFrom); - assert(visibleDuration > 0 && visibleDuration <= clipDuration, `Invalid visibleFrom ${visibleFrom} or visibleUntil ${visibleUntil}`); + assert(visibleDuration > 0 && visibleDuration <= clipDuration, `Invalid visibleFrom ${visibleFrom} or visibleUntil ${visibleUntil} (${clipDuration})`); // TODO Also need to handle video layers (framePtsFactor etc) // TODO handle audio in case of visibleFrom/visibleTo