mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
a1a9f088b1
commit
a1fe552fc9
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,6 @@
|
|||
package js
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
@ -22,6 +21,8 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/spf13/afero"
|
||||
|
||||
"github.com/gohugoio/hugo/hugofs"
|
||||
|
@ -108,6 +109,9 @@ func (t *buildTransformation) Transform(ctx *resources.ResourceTransformationCtx
|
|||
|
||||
createErr := func(msg api.Message) error {
|
||||
loc := msg.Location
|
||||
if loc == nil {
|
||||
return errors.New(msg.Text)
|
||||
}
|
||||
path := loc.File
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in a new issue