better error reporting on failed open/fopen

This commit is contained in:
roberto@natty32
2011-03-16 12:14:41 +01:00
parent 85c8bcf9d2
commit 7ee5948233
10 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -2087,7 +2087,7 @@ PyObject *py_uwsgi_parse_file(PyObject * self, PyObject * args) {
fd = open(filename, O_RDONLY);
if (fd < 0) {
uwsgi_error("open()");
uwsgi_error_open(filename);
goto clear;
}