Skip to content

Commit

Permalink
improves error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Feb 4, 2024
1 parent db69109 commit f5df440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dgs/diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def getHash(txt):
return hashId

def wrap(self, txt):
"""wraot the given text"""
"""wrap the given text"""
if self.id == "plantuml":
txt = "@startuml\n%s\n@enduml\n" % txt
return txt
Expand Down
1 change: 1 addition & 0 deletions dgs/ngwebserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def on_render(self, _e):
genResult = gen.generate(alias, source, output_type, useCached=True)
if not genResult.isValid():
msg = f"could not generate {output_type} for {gen.name} ({alias})"
msg += f"\n{genResult.errMsg()}"
raise Exception(msg)
html = genResult.asHtml()
self.gen_result.content = html
Expand Down

0 comments on commit f5df440

Please sign in to comment.