Skip to content

Commit 0596b1b

Browse files
committed
add error message
1 parent 2fc6829 commit 0596b1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml/src/gguf.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,9 @@ bool gguf_write_to_file(const struct gguf_context * ctx, const char * fname, boo
14121412

14131413
gguf_writer_file gw(file);
14141414
gguf_write_out(ctx, gw, only_meta);
1415+
if (!ok) {
1416+
GGML_LOG_ERROR("%s: failed to write GGUF data into '%s'\n", __func__, fname);
1417+
}
14151418

14161419
fclose(file);
14171420
return gw.ok;

0 commit comments

Comments
 (0)