Fixing print for errors