Print error instead here and for ec2 as well.