aboutsummaryrefslogtreecommitdiff
path: root/src/pj_open_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_open_lib.c')
-rw-r--r--src/pj_open_lib.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pj_open_lib.c b/src/pj_open_lib.c
index 488d7234..69031fd3 100644
--- a/src/pj_open_lib.c
+++ b/src/pj_open_lib.c
@@ -66,11 +66,13 @@ pj_open_lib(char *name, char *mode) {
} else /* just try it bare bones */
sysname = name;
- if( getenv( "PROJ_DEBUG" ) != NULL )
- fprintf( stderr, "pj_open_lib(%s): call fopen(%s).\n",
- name, sysname);
-
if (fid = fopen(sysname, mode))
errno = 0;
+
+ if( getenv( "PROJ_DEBUG" ) != NULL )
+ fprintf( stderr, "pj_open_lib(%s): call fopen(%s) - %s\n",
+ name, sysname,
+ fid == NULL ? "failed" : "succeeded" );
+
return(fid);
}