Skip to content

Commit 2721257

Browse files
authored
quantize : fix confusing error message if ftype is invalid (#15071)
1 parent 587d011 commit 2721257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/quantize/quantize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ int main(int argc, char ** argv) {
611611
return 1;
612612
}
613613
if (!try_parse_ftype(argv[arg_idx], params.ftype, ftype_str)) {
614-
fprintf(stderr, "%s: invalid ftype '%s'\n", __func__, argv[3]);
614+
fprintf(stderr, "%s: invalid ftype '%s'\n", __func__, argv[arg_idx]);
615615
return 1;
616616
}
617617
if (ftype_str == "COPY") {

0 commit comments

Comments
 (0)