Skip to content

Commit

Permalink
Disabling warnings from mjml, UX is not ready for that aha
Browse files Browse the repository at this point in the history
  • Loading branch information
meriadec committed Oct 25, 2016
1 parent b343901 commit 5c99ed7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c99ed7

Please sign in to comment.