vxcontrol/pentagi · error
Resources.NotFound
Resources.NotFound
Error message
resource %q not found
What it means
Error "resource %q not found" thrown in vxcontrol/pentagi.
Source
Thrown at backend/pkg/server/services/resources.go:625
}
srcPaths = append(srcPaths, sp)
}
// ── Route to single-source or multi-source path ───────────────────────────
var result moveResourceResult
if len(srcPaths) == 1 {
srcPath := srcPaths[0]
// When destination is root (""), the effective target is <root>/<src.Name>.
// A source already living at root would land on itself — catch it early.
dstIsDirHint := dstPath == "" || pathHasTrailingSeparator(req.Destination)
if srcPath == dstPath || (dstPath == "" && !strings.Contains(srcPath, "/")) {
response.Error(c, response.ErrResourcesInvalidRequest, errors.New("source and destination are the same"))
return
}
var src models.UserResource
if err := s.db.Where("user_id = ? AND path = ?", uid, srcPath).First(&src).Error; err != nil {
if gorm.IsRecordNotFoundError(err) {
response.Error(c, response.ErrResourcesNotFound, fmt.Errorf("resource %q not found", srcPath))
return
}
logger.FromContext(c).WithError(err).Error("error finding source resource for move")
response.Error(c, response.ErrInternal, err)
return
}
result, err = s.moveResource(uid, src, srcPath, dstPath, req.Force, dstIsDirHint)
} else {
result, err = s.moveMultipleSources(uid, srcPaths, dstPath, req.Force)
}
if err != nil {
switch {
case errors.Is(err, errResourceInvalid):
response.Error(c, response.ErrResourcesInvalidRequest, err)
case errors.Is(err, errResourceConflict):
response.Error(c, response.ErrResourcesConflict, err)
case errors.Is(err, errResourceNotFound):View on GitHub (pinned to ea665308ba)
When it happens
Trigger: Thrown at backend/pkg/server/services/resources.go:625 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vxcontrol/pentagi@ea665308ba (2026-09-01).
Data as JSON: /api/errors/3528335fb02b6cd3.
Report an issue: GitHub.