Fix for issues in errorhandling and class diagrams after refactoring

This commit is contained in:
Knut Sveidqvist
2022-09-16 14:05:15 +02:00
parent 2d9f25b163
commit 9c88c785cb
7 changed files with 29 additions and 14 deletions

View File

@@ -17,10 +17,11 @@ export const setConf = function (cnf: any) {
/**
* Draws a an info picture in the tag with id: id based on the graph definition in text.
*
* @param text
* @param {string} id The text for the error
* @param {string} mermaidVersion The version
*/
export const draw = (id: string, mermaidVersion: string) => {
export const draw = (text: string, id: string, mermaidVersion: string) => {
try {
log.debug('Renering svg for syntax error\n');