mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
helpers: Add --trace to asciidoctor args
This will help to understand and fix errors by seeing stacktrace of an error. See #3714
This commit is contained in:
committed by
Anthony Fok
parent
ff433f9813
commit
b60aa1a504
@@ -555,7 +555,7 @@ tags:
|
||||
th := testHelper{s.Cfg, s.Fs, t}
|
||||
|
||||
for _, test := range tests {
|
||||
if strings.HasSuffix(test.contentPath, ".ad") && !helpers.HasAsciidoc() {
|
||||
if strings.HasSuffix(test.contentPath, ".ad") && !helpers.HasAsciidoctor() && !helpers.HasAsciidoc() {
|
||||
fmt.Println("Skip Asciidoc test case as no Asciidoc present.")
|
||||
continue
|
||||
} else if strings.HasSuffix(test.contentPath, ".rst") && !helpers.HasRst() {
|
||||
|
Reference in New Issue
Block a user