diff --git a/CHANGES.md b/CHANGES.md index 67c2b3f..63ce64c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ moodle-tool_redis Changes ------- +### Unreleased + +* 2024-08-21 - Replace deprecated print_error() with moodle_exception. + ### v4.2-r2 * 2024-08-11 - Add section for scheduled tasks to README diff --git a/lib/redis-stats/config.php b/lib/redis-stats/config.php index 54444a1..90d2491 100644 --- a/lib/redis-stats/config.php +++ b/lib/redis-stats/config.php @@ -66,7 +66,7 @@ // Forth: If there isn't any Redis store configured, we should stop here. if (count($servers) < 1) { - print_error('noredisstoreconfigured', 'tool_redis'); + throw new moodle_exception('noredisstoreconfigured', 'tool_redis'); } // Show a 'Flush' button for databases.