diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 940b373c4f7c7..7155832b47bea 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -1283,7 +1283,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) { throw std::invalid_argument("Invalid hyperparameter values"); } } catch (const std::exception& e) { - std::cerr << "Error while loading hyperparameters: " << e.what() << std::endl; + fprintf(stderr, "Error while loading hyperparameters: %s\n", e.what()); return false; } try {