Georgi Gerganov 2 лет назад
Родитель
Сommit
ff8f9a88da
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      common/common.cpp

+ 2 - 2
common/common.cpp

@@ -110,8 +110,8 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
             exit(0);
         }
     }
-    catch (const std::invalid_argument& ex) {
-        fprintf(stderr, ex.what());
+    catch (const std::invalid_argument & ex) {
+        fprintf(stderr, "%s\n", ex.what());
         gpt_print_usage(argc, argv, gpt_params());
         exit(1);
     }