mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
🎨 Improve importing markdown failed error report https://github.com/siyuan-note/siyuan/issues/8611
This commit is contained in:
parent
72d0b6409b
commit
de03cdb11c
1 changed files with 10 additions and 0 deletions
|
|
@ -459,6 +459,16 @@ func ImportData(zipPath string) (err error) {
|
|||
|
||||
func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
|
||||
util.PushEndlessProgress(Conf.Language(73))
|
||||
defer func() {
|
||||
util.PushClearProgress()
|
||||
|
||||
if e := recover(); nil != e {
|
||||
stack := debug.Stack()
|
||||
msg := fmt.Sprintf("PANIC RECOVERED: %v\n\t%s\n", e, stack)
|
||||
logging.LogErrorf("import from local path failed: %s", msg)
|
||||
err = errors.New("import from local path failed, please check kernel log for details")
|
||||
}
|
||||
}()
|
||||
|
||||
WaitForWritingFiles()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue