Fix ImBuf.load failure showing filename as garbage bytes

Differential Revision: https://developer.blender.org/D5879
This commit is contained in:
Colin Basnett
2019-10-01 19:36:15 +02:00
committed by Brecht Van Lommel
parent 9cda01caf7
commit f0f189de76

View File

@@ -463,7 +463,7 @@ static PyObject *M_imbuf_load(PyObject *UNUSED(self), PyObject *args, PyObject *
const int file = BLI_open(filepath, O_BINARY | O_RDONLY, 0);
if (file == -1) {
PyErr_Format(PyExc_IOError, "load: %s, failed to open file '%s'", strerror(errno));
PyErr_Format(PyExc_IOError, "load: %s, failed to open file '%s'", strerror(errno), filepath);
return NULL;
}