From ad9d3b9be947f735e5cd0e44d9c85b7037c00189 Mon Sep 17 00:00:00 2001 From: s2 Date: Wed, 12 Feb 2020 19:37:36 +0100 Subject: [PATCH] just throw when called sync --- ejs-render-remote.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ejs-render-remote.js b/ejs-render-remote.js index cbae508..791f3af 100644 --- a/ejs-render-remote.js +++ b/ejs-render-remote.js @@ -25,11 +25,7 @@ //if the template is already cached, return it and we are done if (templateFn) { - try { - return templateFn(data); - } catch(ex) { - $.readyException(ex); - } + return templateFn(data); } else { //if the template is not cached, we need to get it and render it later once we have it. remember: this happens only if the template is not already cached