This commit is contained in:
Daniel 2024-12-18 17:17:24 +08:00
parent 5fb2b78911
commit b81de5d2da
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 32 additions and 42 deletions

View file

@ -210,7 +210,8 @@ func LoadTreeByBlockIDWithReindex(id string) (ret *parse.Tree, err error) {
func LoadTreeByBlockID(id string) (ret *parse.Tree, err error) {
if !ast.IsNodeIDPattern(id) {
logging.LogErrorf("block id is invalid [id=%s]", id)
stack := logging.ShortStack()
logging.LogErrorf("block id is invalid [id=%s], stack: [%s]", id, stack)
return nil, ErrTreeNotFound
}