mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
@@ -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 (
|
||||||
|
Reference in New Issue
Block a user