mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-10 13:12:05 -04:00
parent
a1a9f088b1
commit
a1fe552fc9
@ -14,7 +14,6 @@
|
|||||||
package js
|
package js
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
@ -22,6 +21,8 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/spf13/afero"
|
"github.com/spf13/afero"
|
||||||
|
|
||||||
"github.com/gohugoio/hugo/hugofs"
|
"github.com/gohugoio/hugo/hugofs"
|
||||||
@ -108,6 +109,9 @@ func (t *buildTransformation) Transform(ctx *resources.ResourceTransformationCtx
|
|||||||
|
|
||||||
createErr := func(msg api.Message) error {
|
createErr := func(msg api.Message) error {
|
||||||
loc := msg.Location
|
loc := msg.Location
|
||||||
|
if loc == nil {
|
||||||
|
return errors.New(msg.Text)
|
||||||
|
}
|
||||||
path := loc.File
|
path := loc.File
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user