1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vdoc: improve error message for non-existing symbols (#9359)

This commit is contained in:
Ned Palacios
2021-03-18 21:04:53 +08:00
committed by GitHub
parent 7bbcf02134
commit eccf707270
2 changed files with 9 additions and 5 deletions

View File

@@ -330,7 +330,8 @@ fn (mut vd VDoc) generate_docs_from_file() {
}
outputs := vd.render(out)
if outputs.len == 0 {
println('No documentation for $dirs')
eprintln('vdoc: No documentation found for ${dirs[0]}')
exit(1)
} else {
first := outputs.keys()[0]
println(outputs[first])