🎨 Add logging https://github.com/siyuan-note/siyuan/issues/11447
This commit is contained in:
parent
ad58e1c0c9
commit
8a47d44884
1 changed files with 2 additions and 1 deletions
|
@ -115,12 +115,13 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
return
|
||||
}
|
||||
if 1 != len(unzipRootPaths) {
|
||||
logging.LogErrorf("invalid .sy.zip")
|
||||
logging.LogErrorf("invalid .sy.zip [%v]", unzipRootPaths)
|
||||
return errors.New(Conf.Language(199))
|
||||
}
|
||||
unzipRootPath := unzipRootPaths[0]
|
||||
name := filepath.Base(unzipRootPath)
|
||||
if strings.HasPrefix(name, "data-20") && len("data-20230321175442") == len(name) {
|
||||
logging.LogErrorf("invalid .sy.zip [unzipRootPath=%s, baseName=%s]", unzipRootPath, name)
|
||||
return errors.New(Conf.Language(199))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue