X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftypes_list.c;h=ed832fee0baf7721a1de9ab5610741d283882332;hb=e4b8a186516b61f16d94a76db0aa102a3270d46c;hp=7600c346ecc1e8c901460a029c2ead4c167e5576;hpb=e628f39838a67b40d52dfb8425b4d8474fbd0550;p=collectd.git diff --git a/src/types_list.c b/src/types_list.c index 7600c346..ed832fee 100644 --- a/src/types_list.c +++ b/src/types_list.c @@ -172,7 +172,9 @@ int read_types_list (const char *file) if (fh == NULL) { char errbuf[1024]; - ERROR ("open (%s) failed: %s", + fprintf (stderr, "Failed to open types database `%s': %s.\n", + file, sstrerror (errno, errbuf, sizeof (errbuf))); + ERROR ("Failed to open types database `%s': %s", file, sstrerror (errno, errbuf, sizeof (errbuf))); return (-1); }