Skip to content

Commit d99e889

Browse files
committed
ci,tools: prevent v doc from exiting early with an unclear message, when it encounters a folder without .v files (fix after c4a42aa); instead make it skip the folder, and print a message mentioning the path
1 parent 75fc8be commit d99e889

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • cmd/tools/vdoc/document

‎cmd/tools/vdoc/document/doc.v‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ pub fn (mut d Doc) generate() ! {
459459
project_files := os.ls(d.base_path) or { return err }
460460
v_files := d.prefs.should_compile_filtered_files(d.base_path, project_files)
461461
if v_files.len == 0 {
462-
return error_with_code('vdoc: No valid V files were found.', 1)
462+
eprintln('vdoc: No valid V files were found. Skipping folder: ${d.base_path}.')
463+
return
463464
}
464465
// parse files
465466
mut comments_mode := scanner.CommentsMode.skip_comments

0 commit comments

Comments
 (0)