mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
remove unnecessary typeof Error in info diagram renderer
This commit is contained in:
@@ -42,12 +42,7 @@ export const draw: DrawDefinition = (text, id, version) => {
|
|||||||
svg.attr('height', 100);
|
svg.attr('height', 100);
|
||||||
svg.attr('width', 400);
|
svg.attr('width', 400);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log.error('Error while rendering info diagram');
|
log.error('error while rendering info diagram', e);
|
||||||
if (e instanceof Error) {
|
|
||||||
log.error(e.message);
|
|
||||||
} else {
|
|
||||||
log.error('Unexpected error', e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user