]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
quantize : fix confusing error message if ftype is invalid (#15071)
authorSigbjørn Skjæret <redacted>
Mon, 4 Aug 2025 16:11:02 +0000 (18:11 +0200)
committerGitHub <redacted>
Mon, 4 Aug 2025 16:11:02 +0000 (18:11 +0200)
tools/quantize/quantize.cpp

index 0e89a2b81b2a84b2fd5d0cae8cf69c1e2c8b2262..bc63d7036253c9427fff90c772e5ea2699619b0e 100644 (file)
@@ -611,7 +611,7 @@ int main(int argc, char ** argv) {
             return 1;
         }
         if (!try_parse_ftype(argv[arg_idx], params.ftype, ftype_str)) {
-            fprintf(stderr, "%s: invalid ftype '%s'\n", __func__, argv[3]);
+            fprintf(stderr, "%s: invalid ftype '%s'\n", __func__, argv[arg_idx]);
             return 1;
         }
         if (ftype_str == "COPY") {