Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve error
  • Loading branch information
AA-Turner committed May 26, 2025
commit feb034df5833604fbe0374896b2cebc877db8dbc
6 changes: 3 additions & 3 deletions Modules/_zstd/zstddict.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ _zstd_ZstdDict_new_impl(PyTypeObject *type, Py_buffer *dict_content,
/* All dictionaries must be at least 8 bytes */
if (dict_content->len < 8) {
PyErr_SetString(PyExc_ValueError,
"Zstandard dictionary content must be longer "
"than eight bytes.");
"Zstandard dictionary content too short "
"(must have at least eight bytes)");
return NULL;
}

Expand Down Expand Up @@ -89,7 +89,7 @@ _zstd_ZstdDict_new_impl(PyTypeObject *type, Py_buffer *dict_content,

PyObject_GC_Track(self);

return (PyObject*)self;
return (PyObject *)self;

error:
Py_XDECREF(self);
Expand Down