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
@@ -196,7 +196,7 @@ PyObject *uwsgi_pyimport_by_filename(char *name, char *filename) {
real_filename = uwsgi_concat2(filename, "/__init__.py");
pyfile = fopen(real_filename, "r");
if (!pyfile) {
uwsgi_error("fopen()");
uwsgi_error_open(real_filename);
exit(1);
}
}