Skip to content

fix(tools): correct extension error message and format string in asciidoclint#619

Merged
fruffy merged 1 commit into
p4lang:mainfrom
Devansh-567:fix-asciidoclint-msg
Jul 4, 2026
Merged

fix(tools): correct extension error message and format string in asciidoclint#619
fruffy merged 1 commit into
p4lang:mainfrom
Devansh-567:fix-asciidoclint-msg

Conversation

@Devansh-567

Copy link
Copy Markdown
Contributor

Description

Fixes a copy-paste error string and an unformatted print bug in the asciidoclint.py tooling script.

The script validates files ending with an .adoc extension, but the error message incorrectly stated that the file was missing an .mdk extension. Additionally, the original print statement did not call .format(f), meaning the actual file path was never injected into the string.

Changes

  • Updated the error string to correctly reference .adoc.
  • Appended .format(f) to ensure the target filename is printed when the validation fails.

How Has This Been Tested?

  • Verified the script output locally with an invalid file extension to ensure it prints the correct error string along with the targeted filename without crashing.

…idoclint

Signed-off-by: Devansh-567 <devansh.jay.singh@gmail.com>
@Devansh-567
Devansh-567 force-pushed the fix-asciidoclint-msg branch from 41a7d55 to 4a15355 Compare July 4, 2026 09:50
@fruffy
fruffy merged commit 4cc950e into p4lang:main Jul 4, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants