Added more explicit error messages for tap and tun samples