Only print error if an error actually occurred