When using PlantUML with only local paths is resulting in an error, PlantUML should not expose the full path in the error messages. This is a security issue as it exposes information on the system on a higher level than the working directory is located.
Perhaps show these absolute paths only when a special option for it is provided, but in normal use, please only show local and relative paths in error messages. Fixing this will make usage of PlantUML less risky when error output is shared with others.
Input 1 is:
@startuml
start
:asdf
stop
@enduml
Output 1 on command line is:
Error line 2 in file: /tmp/home/username/test-directory/test.pu
Some diagram description contains errors
Desired is only "Error line 2 in file: test.pu"
Output 1 in PNG file is:
Desired is only "[From test.pu line 3) ]".
Input 2 is:
@startuml
!include ../skin.pu
start
:asdf;
stop
@enduml
Output 2 on command line is:
Preprocessor Error: Cannot include /tmp/home/username/test-directory/../skin.pu
Error line 1 in file: /tmp/home/username/test-directory/test.pu
Some diagram description contains errors
Desired is only "Preprocessor Error: Cannot include ../skin.pu" and "Error line 1 in file: test.pu".
Output 2 in PNG file is:
Desired is only "From test.pu (line 2) ]" and "Cannot include .../skin.pu"