Definitely not interested in trying to maintain a hacked version of asciidoc on our build servers. I guess we'll have to find a way to post-process the log output in a wrapper somehow.
Thanks, -- Dave Smith, PE @devunwired On Tuesday, December 15, 2015 at 4:08:35 PM UTC-7, Lex Trotman wrote: > > On 16 December 2015 at 07:45, Dan Allen <[email protected] <javascript:>> > wrote: > > Lex is correct, there is no built-in option. However, all the messages > are > > delegated to the Message class, so in theory you could override the > > definition of that class using monkey patching and add this behavior. > > > > In fact the existence of warnings is already recorded, so (ignoring it > being optional) all thats needed is to add: > > ``` > sys.exit(document.has_warnings) > ``` > > as the last line of `asciidoc.py` > > Cheers > Lex > > > The requested change is planned for Asciidoctor. See > > https://github.com/asciidoctor/asciidoctor/issues/44 and > > https://github.com/asciidoctor/asciidoctor/issues/803. > > > > -Dan > > > > On Tue, Dec 15, 2015 at 12:51 PM, Lex Trotman <[email protected] > <javascript:>> wrote: > >> > >> Hi Dave, > >> > >> I don't think asciidoc itself has such an option and for the rest of > >> the toolchain that would depend on which one you are using and if > >> those programs had the option. > >> > >> Cheers > >> Lex > >> > >> On 16 December 2015 at 02:33, Dave Smith <[email protected] > <javascript:>> wrote: > >> > Hi all - > >> > > >> > This seems like a simple thing, but I can't find the answer anywhere. > >> > How > >> > can one invoke the asciidoc toolchain forcing warnings to return as > >> > errors? > >> > We are running doc builds on a CI server, and would like the job to > fail > >> > when asciidoc warnings (such as missing includes) are encountered. > >> > > >> > Cheers, > >> > -- > >> > Dave Smith, PE > >> > @devunwired > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups > >> > "asciidoc" group. > >> > To unsubscribe from this group and stop receiving emails from it, > send > >> > an > >> > email to [email protected] <javascript:>. > >> > To post to this group, send email to [email protected] > <javascript:>. > >> > Visit this group at https://groups.google.com/group/asciidoc. > >> > For more options, visit https://groups.google.com/d/optout. > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "asciidoc" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to [email protected] <javascript:>. > >> To post to this group, send email to [email protected] > <javascript:>. > >> Visit this group at https://groups.google.com/group/asciidoc. > >> For more options, visit https://groups.google.com/d/optout. > > > > > > > > > > -- > > Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "asciidoc" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at https://groups.google.com/group/asciidoc. > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
