Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--fatalwarnings returns 0 exit code with invalid Markdown references #388

Open
steve-baker-cradle opened this issue Jan 26, 2023 · 0 comments

Comments

@steve-baker-cradle
Copy link

The --fatalwarnings command line option does not appear to produce non-zero exit codes for invalid references from one Markdown document to another.

I have three files declared in my config.ld:

topics = {
    'info.md',
    'doc2.md'
}

file = {
    'app.lua'
}

app.lua & doc2.md each contain a reference to info.md.

app.lua:

--  This should always be @{info.md|some info}.

doc2.md:

Let's do some work @{info.md|here}.

If I change info.md to wrongfile.md in app.lua then calling ldoc with the --fatalwarnings option will produce a warning message and return an exit code of 1 as expected. However, if I make a similar change in doc2.md I receive the warning message as expected but the exit code is 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant