From 0982a696b40da7ad102fe24e7183244abbef675f Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 10 Sep 2020 19:41:51 +0200 Subject: [PATCH] improve error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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