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

Skip to content

Commit 6ebcb11

Browse files
committed
STY: lower case error messages
1 parent a647756 commit 6ebcb11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_png.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ static void _read_png_data(PyObject *py_file_obj, png_bytep data, png_size_t len
416416
PyErr_SetString(PyExc_IOError, "read past end of file");
417417
}
418418
} else {
419-
PyErr_SetString(PyExc_IOError, "Failed to copy buffer");
419+
PyErr_SetString(PyExc_IOError, "failed to copy buffer");
420420
}
421421
} else {
422-
PyErr_SetString(PyExc_IOError, "Failed to read file");
422+
PyErr_SetString(PyExc_IOError, "failed to read file");
423423
}
424424

425425

@@ -519,7 +519,7 @@ static PyObject *_read_png(PyObject *filein, bool float_result)
519519

520520
if (setjmp(png_jmpbuf(png_ptr))) {
521521
if (!PyErr_Occurred()) {
522-
PyErr_SetString(PyExc_RuntimeError, "Error setting jump");
522+
PyErr_SetString(PyExc_RuntimeError, "error setting jump");
523523
}
524524
goto exit;
525525
}

0 commit comments

Comments
 (0)