-
-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Processor doesn't fail when it should #3078
Comments
Your observation is correct. Your understanding of the You can see how it works by chaining a command to Asciidoctor.
In your case, the |
So it fails (exit status), just not in the way you were anticipating. |
Understood, thanks. |
Here is simple script to automatically remove "error prone" HTML file:
It's just another illustration of what Dan said. Of course, it's not suitable for real work: e.g., it's not a good idea to use timeout. Test file:
|
That's a nice tip, though I'm no sure why the timeout is necessary. The call to The feature you were probably anticipating is "fail fast". That's possible using a custom logger (as the logger will receive the log event). It's also proposed as a built-in feature in #803, but it still needs some design work. Asciidoctor tries not to be overly pedantic to avoid disrupting the writer's work. That's why it will produce a document even with warnings, but gives the tools you need to make that behavior more strict. |
Yes, exactly, it's not necessary. It was my mistake during testing. |
👍 |
Probably a bug.
As I understand, at least one of these examples should fail:
Hello {Name}!
However, in both cases, HTML file was "successfully" created:
I haven't tested on Linux, but it occurs at least on Windows.
asciidoctor -v
:The text was updated successfully, but these errors were encountered: