mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
61cf3c9f63
commit
b60e1bbdfe
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
package dartsass
|
package dartsass
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/gohugoio/hugo/helpers"
|
"github.com/gohugoio/hugo/helpers"
|
||||||
|
@ -77,6 +78,9 @@ func (c *Client) toCSS(args godartsass.Args, src io.Reader) (godartsass.Result,
|
||||||
|
|
||||||
res, err := c.transpiler.Execute(args)
|
res, err := c.transpiler.Execute(args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if err.Error() == "unexpected EOF" {
|
||||||
|
return res, fmt.Errorf("got unexpected EOF when executing %q. The user running hugo must have read and execute permissions on this program. With execute permissions only, this error is thrown.", dartSassEmbeddedBinaryName)
|
||||||
|
}
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue