GNOME Bugzilla – Bug 779615
yelp-check validate does not return a proper exit code on errors
Last modified: 2018-05-22 12:52:10 UTC
I've modified a document to contain an error: $ yelp-check validate ./C ./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page </page> ^ ./C/image-preview.page:60: parser error : Premature end of data in tag page line 2 ^ unable to parse ./C/image-preview.page ./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page </page> ^ ./C/image-preview.page:60: parser error : Premature end of data in tag page line 2 ^ unable to parse ./C/image-preview.page warning: failed to load external entity "/tmp/yelp-vC0b6lsc/.rng" Relax-NG parser error : xmlRelaxNGParse: could not load /tmp/yelp-vC0b6lsc/.rng Relax-NG schema /tmp/yelp-vC0b6lsc/.rng failed to compile ./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page </page> ^ ./C/image-preview.page:60: parser error : Premature end of data in tag page line 2 ^ $ echo $? 0 As you can see, the return code is 0, which usually signals success. This should be changed to return a non-zero return code on errors.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/yelp-tools/issues/16.