From 5c99ed7ed3761fbfba21586359324b7533868fbc Mon Sep 17 00:00:00 2001 From: meriadec Date: Tue, 25 Oct 2016 20:10:09 +0200 Subject: [PATCH] Disabling warnings from mjml, UX is not ready for that aha --- services.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services.js b/services.js index 3a4954bf..4c941ede 100644 --- a/services.js +++ b/services.js @@ -96,12 +96,19 @@ exports.createGist = function (content, done) { exports.mjml2html = (mjmlInput, done) => { try { const res = mjml.mjml2html(mjmlInput) + + /* + * Disabling that for the moment, because errors + * occurs to often while typing + * if (res.errors.length) { const formattedErrors = res.errors .map(e => e.formattedMessage) .join('\n') return done(formattedErrors) } + */ + done(null, res.html) } catch (e) { done(e.message)