86f24d7c4e
Move these error logs and checks on detach capabilities in a common place. Signed-off-by: David Marchand <david.marchand@6wind.com> Reviewed-by: Jan Viktorin <viktorin@rehivetech.com>