ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/config.c
(Generate patch)

Comparing hopm/branches/1.0.x/src/config.c (file contents):
Revision 5254 by michael, Tue Dec 30 16:41:51 2014 UTC vs.
Revision 5255 by michael, Thu Jan 1 13:57:32 2015 UTC

# Line 23 | Line 23
23  
24   #include "setup.h"
25  
26 +
27   #include <stdio.h>
28 + #include <errno.h>
29   #include <string.h>
30  
31   #include "config.h"
# Line 62 | Line 64 | config_load(const char *filename)
64  
65    if ((yyin = fopen(filename, "r")) == NULL)
66    {
67 <    log_printf("CONFIG -> Error opening %s", filename);
67 >    log_printf("CONFIG -> Error opening %s: %s", filename, strerror(errno));
68      exit(EXIT_FAILURE);
69    }
70  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines