X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftypes_list.c;h=ed832fee0baf7721a1de9ab5610741d283882332;hb=4027126a75439c7d2b1d5572092fd291ef19ead6;hp=7600c346ecc1e8c901460a029c2ead4c167e5576;hpb=ec404735b0676bb44fdba10f3760e1ba9632405a;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); }