We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 552a656 commit 2e97e98Copy full SHA for 2e97e98
1 file changed
runtime/builtin.go
@@ -3,6 +3,7 @@ package runtime
3
import (
4
"bytes"
5
"context"
6
+ "fmt"
7
"io"
8
9
"github.com/MontFerret/contrib/modules/html"
@@ -31,12 +32,16 @@ func NewBuiltin(opts Options) (Runtime, error) {
31
32
),
33
)
34
35
+ if err != nil {
36
+ return nil, fmt.Errorf("initialize html module: %w", err)
37
+ }
38
+
39
engine, err := ferret.New(
40
ferret.WithModules(htmlmod),
41
42
43
if err != nil {
- return nil, err
44
+ return nil, fmt.Errorf("initialize engine: %w", err)
45
}
46
47
return &Builtin{
0 commit comments