File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -325,14 +325,22 @@ fn (mut vd VDoc) generate_docs_from_file() {
325
325
docs << vd.docs.filter (it .head.name != 'builtin' )
326
326
vd.docs = docs
327
327
}
328
+ if dirs.len == 0 && cfg.is_multi {
329
+ eprintln ('vdoc: -m requires at least 1 module folder' )
330
+ exit (1 )
331
+ }
328
332
vd.vprintln ('Rendering docs...' )
329
333
if out.path.len == 0 || out.path == 'stdout' {
330
334
if out.typ == .html {
331
335
vd.render_static_html (out)
332
336
}
333
337
outputs := vd.render (out)
334
338
if outputs.len == 0 {
335
- eprintln ('vdoc: No documentation found for ${dirs[0]} ' )
339
+ if dirs.len == 0 {
340
+ eprintln ('vdoc: No documentation found' )
341
+ } else {
342
+ eprintln ('vdoc: No documentation found for ${dirs[0]} ' )
343
+ }
336
344
exit (1 )
337
345
} else {
338
346
first := outputs.keys ()[0 ]
You can’t perform that action at this time.
0 commit comments