[scanner] Print error instead of throwing for unknown include