From f146000b1f65ee247b214ced6624cfe9c7ed9ee3 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Tue, 28 Apr 2020 17:08:32 +0800 Subject: [PATCH] improve error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6363e0e..def6860 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ const GlTransitions = require('./glTransitions'); const loadedFonts = []; // See #16 -const checkTransition = (transition) => assert(transition == null || typeof transition === 'object', `Invalid transition ${transition}`); +const checkTransition = (transition) => assert(transition == null || typeof transition === 'object', 'Transition must be an object'); module.exports = async (config = {}) => {