Code

rrdcached: Improved an error message. -- Sebastian Harl
[rrdtool.git] / src / rrd_daemon.c
index 7913a599bf3995e70288a30666fe992c2804b386..fa7dc41bac4cf62837d2517f3a66f707ad5ff44b 100644 (file)
@@ -2914,7 +2914,8 @@ static int read_options (int argc, char **argv) /* {{{ */
          */
         if (realpath(config_base_dir, base_realpath) == NULL)
         {
-          fprintf (stderr, "Invalid base directory '%s'.\n", config_base_dir);
+          fprintf (stderr, "Failed to canonicalize the base directory '%s': "
+              "%s\n", config_base_dir, rrd_strerror(errno));
           return 5;
         }
         else if (strncmp(config_base_dir,