diff --git a/lib/PBot/Core/Plugins.pm b/lib/PBot/Core/Plugins.pm index 681acc7b..3b7339a0 100644 --- a/lib/PBot/Core/Plugins.pm +++ b/lib/PBot/Core/Plugins.pm @@ -53,7 +53,11 @@ sub autoload { $self->{pbot}->{logger}->log(" $plugin\n"); - $plugin_count++ if $self->load($plugin, %conf); + if ($self->load($plugin, %conf)) { + $plugin_count++ + } else { + die "Plugin $plugin failed to autoload. You may remove it from $data_dir/plugin_autoload.\n"; + } } $self->{pbot}->{logger}->log("$plugin_count plugin" . ($plugin_count == 1 ? '' : 's') . " loaded.\n"); diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index a1ad1ade..adf60217 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4331, + BUILD_REVISION => 4332, BUILD_DATE => "2021-07-31", };