aboutsummaryrefslogtreecommitdiff
path: root/internal/internal.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-22 20:11:57 +0700
committerShulhan <ms@kilabit.info>2024-03-22 20:12:34 +0700
commit62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee (patch)
treeecd71be835eea9fcadca2d1295c3f7dc9c11b371 /internal/internal.go
parent4ec4ca7d83320151bdc1894f0b2a5d31661ad6b0 (diff)
downloadawwan-62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee.tar.xz
all: replace module "share" with "pakakeh.go"
The "share" project has been moved to SourceHut with new name "pakakeh.go".
Diffstat (limited to 'internal/internal.go')
-rw-r--r--internal/internal.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/internal/internal.go b/internal/internal.go
index 770f27a..bbaac0b 100644
--- a/internal/internal.go
+++ b/internal/internal.go
@@ -11,10 +11,10 @@ import (
"time"
"git.sr.ht/~shulhan/ciigo"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/mlog"
"github.com/evanw/esbuild/pkg/api"
esapi "github.com/evanw/esbuild/pkg/api"
- "github.com/shuLhan/share/lib/memfs"
- "github.com/shuLhan/share/lib/mlog"
)
// MemfsWui contains the embedded files under _wui for web-user interface.
@@ -189,7 +189,11 @@ func Watch() {
mlog.Errf(`%s %q: %s`, logp, ns.Node.Path, err)
continue
}
- node.Update(&ns.Node, 0)
+ err = node.Update(&ns.Node, 0)
+ if err != nil {
+ mlog.Errf(`%s %q: %s`, logp, ns.Node.Path, err)
+ continue
+ }
embedCount++
case strings.HasSuffix(ns.Node.SysPath, DocConvertOpts.HTMLTemplate):