ldoc icon indicating copy to clipboard operation
ldoc copied to clipboard

--fatalwarnings returns 0 exit code with invalid Markdown references

Open steve-baker-cradle opened this issue 2 years ago • 0 comments

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.

steve-baker-cradle avatar Jan 26 '23 17:01 steve-baker-cradle