fix: missing proxmox initialization

This commit is contained in:
yusing
2025-04-28 05:08:14 +08:00
parent 21c9e46274
commit 27409abc24
4 changed files with 31 additions and 11 deletions

View File

@@ -131,7 +131,7 @@ func NewWatcher(parent task.Parent, r routes.Route) (*Watcher, error) {
case routes.StreamRoute:
w.stream = r
default:
return nil, gperr.New("unexpected route type")
return nil, gperr.Errorf("unexpected route type: %T", r)
}
ctx, cancel := context.WithTimeout(parent.Context(), reqTimeout)