Skip to content

Error output when there is just nothing to do

I try to use the org.asciidoctor.jvm.gems plugin which uses this plugin under the hood.

When executing the AsciidoctorGemPrepare task which extends AbstractGemPrepareTask, the output is majorly confusing. If there are Gems to be installed, it is fine. But if all Gems are already present, the output say

> Task :doc:manual:asciidoctorGemsPrepare
ERROR:  While executing gem ... (Gem::CommandLineError)
    Please specify at least one gem name (e.g. gem build GEMNAME)

to stderr.

It does not make the task or build fail. But still it is confusing and also IntelliJ IDEA for example show the build as failed although it is not. Of course that detail is more an IJ problem, but still "ERROR" in the output and written to stderr is not too nice.

Maybe the task can avoid triggering this when there is nothing to do?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information