Skip to content

Inaccurate error message if /svgl/ or /png/ is left out from URL #10

@chbndrhnns

Description

@chbndrhnns

Creating a diagram on a custom server fails if you are missing the exact URL (see below).

I suggest appending a trailing slash (and maybe the trailing /uml) if it is missing from the server configuration.

python -m plantuml -s https://server/  a.puml

The error is:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.7/site-packages/plantuml.py", line 230, in <module>
    main()
  File "/usr/local/lib/python3.7/site-packages/plantuml.py", line 226, in main
    'gen_success': pl.processes_file(filename, directory=args.out)}, args.files)))
  File "/usr/local/lib/python3.7/site-packages/plantuml.py", line 226, in <lambda>
    'gen_success': pl.processes_file(filename, directory=args.out)}, args.files)))
  File "/usr/local/lib/python3.7/site-packages/plantuml.py", line 199, in processes_file
    content = self.processes(data)
  File "/usr/local/lib/python3.7/site-packages/plantuml.py", line 173, in processes
    raise PlantUMLHTTPError(response, content)
  File "/usr/local/lib/python3.7/site-packages/plantuml.py", line 56, in __init__
    if not self.message:
AttributeError: 'PlantUMLHTTPError' object has no attribute 'message'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions