mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
61cf3c9f63
commit
b60e1bbdfe
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
package dartsass
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"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)
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue