mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-24 16:54:11 +00:00
parent
a1a9f088b1
commit
a1fe552fc9
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue