correct value checking for printing errors to log