[clang-tidy] Don't print a message if there's no error.