Skip to content

Commit

Permalink
Linter hapiness
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Jun 3, 2023
1 parent b195d56 commit 81f4140
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions diagrams.net/src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const puppeteer = require('puppeteer')

class SyntaxError extends Error {
constructor (err) {
console.log({err})
console.log({ err })
super(`Syntax error in graph: ${JSON.stringify(err)}`)
}
}
Expand Down Expand Up @@ -36,15 +36,15 @@ class Worker {
format: 'svg'
}).getSvg()
const s = new XMLSerializer()
console.log({s})
console.log({ s })
return { svg: s.serializeToString(svgRoot), error: null }
} catch (err) {
console.log({err})
console.log({ err })
return { svg: null, error: err }
}
}, task.source),
page.waitForTimeout(this.convertTimeout)
]);
])

if (evalResult && evalResult.error) {
throw new SyntaxError(evalResult.error)
Expand Down

0 comments on commit 81f4140

Please sign in to comment.