Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88479d4

Browse files
committed
error message explicit that it needs path to file
1 parent 9d8fde2 commit 88479d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ft2font_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ static int PyFT2Font_init(PyFT2Font *self, PyObject *args, PyObject *kwds)
433433
|| !(data = PyObject_CallMethod(filename, "read", "i", 0))
434434
|| !PyBytes_Check(data)) {
435435
PyErr_SetString(PyExc_TypeError,
436-
"First argument must be a path or binary-mode file object");
436+
"First argument must be a path to a font file or a binary-mode file object");
437437
Py_CLEAR(data);
438438
goto exit;
439439
} else {

0 commit comments

Comments
 (0)