aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-17 01:30:58 +0700
committerShulhan <ms@kilabit.info>2023-11-17 01:33:35 +0700
commit1946b89dba839e337853480e7a8e0a1e95c195ab (patch)
tree0f2417f5955b124ffeb78086d59b619bad5dc657
parentdee7b466fc31c481d1d9a167a6b1655c710c97bc (diff)
downloadawwan-1946b89dba839e337853480e7a8e0a1e95c195ab.tar.xz
internal: use the node SysPath to convert markup file
This fix an error NewFileMarkup: stat /doc/awwan.adoc: no such file or directory When adoc file changes.
-rw-r--r--internal/internal.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/internal.go b/internal/internal.go
index fdba94a..fe26e90 100644
--- a/internal/internal.go
+++ b/internal/internal.go
@@ -161,9 +161,9 @@ func Watch() {
case strings.HasSuffix(ns.Node.Path, `.adoc`),
strings.HasSuffix(ns.Node.Path, `.md`):
- fmarkup, err = ciigo.NewFileMarkup(ns.Node.Path, nil)
+ fmarkup, err = ciigo.NewFileMarkup(ns.Node.SysPath, nil)
if err != nil {
- mlog.Errf(`%s %q: %s`, logp, ns.Node.Path, err)
+ mlog.Errf(`%s %q: %s`, logp, ns.Node.SysPath, err)
continue
}