perl plugin: Improve error message.
authorFlorian Forster <octo@collectd.org>
Wed, 20 Sep 2017 17:38:10 +0000 (19:38 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 20 Sep 2017 17:38:10 +0000 (19:38 +0200)
src/perl.c

index 66ad181..a6739c4 100644 (file)
@@ -2399,8 +2399,8 @@ static int perl_config_plugin(pTHX_ oconfig_item_t *ci) {
   HV *config;
 
   if (NULL == perl_threads) {
-    log_err("No plugins was loaded yet! Put your plugin configuration block "
-            "after relevant `LoadPlugin' option.");
+    log_err("A `Plugin' block was encountered but no plugin was loaded yet. "
+            "Put the appropriate `LoadPlugin' option in front of it.");
     return -1;
   }