Skip to content

[BUG] <!--Link--> error message is confusing when the file exists but the link name is missing #25

@lestephane

Description

@lestephane

Describe the bug

Example markdown:

<!---[Link](itests/src/test/scripts/jar-tests.sh)-->

(the file exists)

Documaid generate result:

[INFO] DocuMaid started
[ERROR] DocuMaid finished with 1 errors.
[ERROR] Found [Link] tag to not existing file '/home/lestephane/GitRepos/quantummaid-tutorials/aws-lambda/itests/src/test/scripts/jar-tests.sh)' (in path /home/lestephane/GitRepos/quantummaid-tutorials/aws-lambda/01_TheCaseForLambda.md)

Notice the closing parenthese in the reported file name. The user is supposed to add a name to the link.

<!---[Link](itests/src/test/scripts/jar-tests.sh "jar-tests.sh")-->

The error message should indicate that a name attribute is required, or use some reasonable default
(such as the basename as shown above). Either way would be fine for me. But the not existing file
error is quite confusing and must go.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions