Skip to content

Commit 6fd6b0a

Browse files
committed
Always display numeric errors
1 parent 03053e9 commit 6fd6b0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/freetypy_error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ int ftpy_exc(FT_Error error)
4949
entry = &errors[error];
5050
if (entry->code == 0) {
5151
PyErr_Format(
52-
PyExc_RuntimeError, "Unknown FreeType exception %x", error);
52+
PyExc_RuntimeError, "Unknown FreeType exception 0x%x", error);
5353
return 1;
5454
} else {
55-
PyErr_Format(entry->cls, "FreeType error %x: %s", error, entry->msg);
55+
PyErr_Format(entry->cls, "FreeType error 0x%x: %s", error, entry->msg);
5656
return 1;
5757
}
5858
}

0 commit comments

Comments
 (0)