From 4636ee6c3a80aaabbf9e0d1255adec40e944b420 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 18 Dec 2025 18:21:23 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16623 Signed-off-by: Daniel <845765@qq.com> --- kernel/util/pandoc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/util/pandoc.go b/kernel/util/pandoc.go index ca0e6212a..8654d9cb6 100644 --- a/kernel/util/pandoc.go +++ b/kernel/util/pandoc.go @@ -222,9 +222,10 @@ func IsValidPandocBin(binPath string) bool { return false } - // 在 Unix 上要求拥有可执行权限 + // 在 Unix-like 上要求拥有可执行权限 if !gulu.OS.IsWindows() { if fi.Mode().Perm()&0111 == 0 { + logging.LogWarnf("file [%s] is not executable", binPath) return false } } @@ -273,6 +274,7 @@ func IsValidPandocBin(binPath string) bool { } if !isBin { + logging.LogWarnf("file [%s] is not a valid binary executable", binPath) return false }